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

Posts: 204
Registered: ‎07-09-2009
My Device: Not Specified

How to set application flag in ApplicationDescriptor

I can read my app's flags with ApplicationDescriptor.getFlags().


How does one change those flags?  I want to set or clear FLAG_RUN_ON_STARTUP after the app is built and installed.


Do I have to use CodeModuleManager to delete the module then recreate it with the desired flag change?  That might be a problem if the module is currently running.


I don't want to get into a discussion of why, please, just how.  Thanks,


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

Re: How to set application flag in ApplicationDescriptor

[ Edited ]

There are no APIs in the BlackBerry API set that allow an application to modify its application flags.

Message Edited by MSohm on 08-21-2009 03:10 PM
Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.