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
mlamagra
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
MSohm
Posts: 14,757
Registered: ‎07-09-2008
My Device: BlackBerry Passport

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.
Found a bug? Report it using Issue Tracker