09-21-2008 08:13 PM
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?
09-22-2008 03:51 PM
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.