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
New Developer
Posts: 5
Registered: ‎09-15-2008
My Device: Not Specified

Re: MenuItem Test not working

I still cannot get this to work.

 

If I copy MyMenuItem into one of the UIApplication examples and call registerInstance from within a button press then the menu items are added as they should be (on a real blackberry)

 

It appears to be a problem with the autostart as if I set the UIApplication to autostart and register the menuitem in the main method then it works in the simulator but not the real blackberry.

 

Is autostart something that the carrier (Telus) might have disabled?

Is there a was to find out?

 

Regards.

 

BlackBerry Development Advisor
Posts: 15,264
Registered: ‎07-09-2008
My Device: BlackBerry Passport
My Carrier: Bell

Re: MenuItem Test not working

A carrier can not disable auto-start applications, but a user can disable ApplicationMenuItems.  To check this go to Options, Advanced Options, Applications, select your application and choose Edit Permissions.  Applications can also use the ApplicationsPermissionsManager to request permissions.

 

You can also connect your BlackBerry to the BlackBerry JDE and step through your application.  If it throws a ControlledAccessException then the application does not have permission to do what it is attempting.

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker