Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
Jeff_Lu
Posts: 384
Registered: ‎08-12-2008
My Device: 8700

how to programatically change profile setting

Hi,

 

I registered a Profile on my application, when there is something happed, it will be invoked.

 

however, sometime user want it virbrate, sometime user want to silent.

 

So how to catch registered profile setting and change it programatically?

 

 

I have took at for a google and here, i still have no solution.

 

SOS.....

 

 

Thanks.

 

Please use plain text.
Developer
RexDoug
Posts: 4,764
Registered: ‎07-21-2008
My Device: Not Specified

Re: how to programatically change profile setting

There is no solution, other than to run the "Profiles" program and manually change the settings.

 

Please use plain text.
Developer
Jeff_Lu
Posts: 384
Registered: ‎08-12-2008
My Device: 8700

Re: how to programatically change profile setting

So fast and so nice, i will not drop into deep valley this night.

 

Please use plain text.
New Developer
GregSmith104
Posts: 20
Registered: ‎01-05-2009
My Device: Not Specified

Re: how to programatically change profile setting

Is this still true?

 

There are so many great things you could do if you could change the current device profile :smileyfrustrated:

 

 

Greg

Please use plain text.
Developer
Posts: 5,339
Registered: ‎09-20-2008
My Device: ***
My Carrier: ***

Re: how to programatically change profile setting

Yes, it is still true.

 

Even in the most recent 4.7 RIM API there is no way to access Profiles programmatically.

Please use plain text.
Developer
amardeepjaiman
Posts: 293
Registered: ‎02-25-2009
My Device: Not Specified

Re: how to programatically change profile setting

[ Edited ]

I think in JDE 4.7 we have new api to setRingtone of profile.

 

public static void setPhoneRingTone(String ringtone){
}

 

Its in NotificationManager class. You can use this method to set profile ringtone.

 

 

________________________________________________________________
If your issue solved, please resolve this thread. Set "Solution" mark on the post which contains the answer to your question. Thanks. Please If I successfully help you with an issue, thank you for clicking "kudos" in my post. 

Message Edited by amardeepjaiman on 03-18-2009 08:43 PM
Please use plain text.
New Contributor
samintechvalens
Posts: 7
Registered: ‎09-21-2011
My Device: Torch 9800
My Carrier: Software Developer

Re: how to programatically change profile setting

I was trying to control the Device Profile, and looking for some API's related to this task. It ll be very nice if somebody share a precious part of their experice with me, I have a deadline to complete my app. 

According to my search we dont have any API related to this purpose. But as i m a new one in this BB_world, so i m not sure  with my search.

Is their any other way to change or control the profile apart from  manager.launch( "net_rim_bb_profiles_app" ); and event injector.

I dnt want to use event injector becoz its not a good practice to use event injector for any task. it ll create prob when we run our app in different devices of different congig and OS version.

help me :smileysad:

Please use plain text.
New Contributor
samintechvalens
Posts: 7
Registered: ‎09-21-2011
My Device: Torch 9800
My Carrier: Software Developer

Re: how to programatically change profile setting

The only way to access the device profile in blackberry is to launch the default blackberry application.

I have get the device OS version programetically and saparate the code for different device, as the sequnce of device varried from one OS version to another.

My app is on BB app store as Wallpaper and Profile Scheduller by techvalens software systems.

Please use plain text.