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

BlackBerry® World™ Development

Reply
New Developer
Posts: 2
Registered: ‎03-20-2009
My Device: Not Specified

Blackberry will not open Options screen

Hi,

 

I am developing application that calls Blackberry options screen from my application. Everything works great in a simulator, but once I have it on a device it does not work. When you click the button to call options screen, nothing happens on a device. Any ideas would be appreciated, Thanks 

 

int handle = CodeModuleManager.getModuleHandle("net_rim_bb_options_app"); //net_rim_bb_phone_app
                ApplicationDescriptor[] phoneDescriptors = CodeModuleManager.getApplicationDescriptors(handle);
                         String[] args = {"","",""};                      
                                       
                        ApplicationDescriptor descriptor = new ApplicationDescriptor
                      (phoneDescriptors[0],
                            "phone", args,
                            null,-1, null, -1
                        );
               
                 try
                        {
                           ApplicationManager.getApplicationManager().runApplication(descriptor);
                        }
                        catch(ApplicationManagerException e)
                        {
                           Dialog.alert("Error: " + String.valueOf(e));
                        } 

New Developer
Posts: 2
Registered: ‎03-20-2009
My Device: Not Specified

Re: Blackberry will not open Options screen

It throws the ControlledAccessException. It breaks on this line.

ApplicationManager.getApplicationManager().runApplication(descriptor);

Anyone has any idea what to try?