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: 455
Registered: ‎01-14-2009
My Device: Apple iPhone 3GS 16GB
Accepted Solution

Autostartup app programatically.

hi friends, 


My app works on OS 4.5 onwards. It is an auto-startup app. Is there anyway I can do autostartup in just OS 4.5 but not OS 5+. ? Is there any way i can do it programatically?



Posts: 14
Registered: ‎10-21-2010
My Device: 9520
My Carrier: no

Re: Autostartup app programatically.

Hi dear,



 Yes, autostart the application in os5 but first of all accept my solution then i will give a idea for solve this problem....



Manoj Kumar Baghela

Posts: 455
Registered: ‎01-14-2009
My Device: Apple iPhone 3GS 16GB

Re: Autostartup app programatically.

Wow. seems like you are defining forum rules. 


Buddy a solution is accepted if the first poster feels it has helped him solve the issue. I dont know what your intentions are ,but lets stick to the question, and if you know the answer you are welcome to post it here. If not please dont spoil the quality of this forum.


A simple and honest advice from me


Posts: 147
Registered: ‎08-27-2010
My Device: 9800
My Carrier: airtel

Re: Autostartup app programatically.

I think you can do this bye creating alternate entry point.


after setting alternate entry point try this code.



	if (args != null && args.length > 0 && args[0].equals("autostart")) {
			String version = DeviceInfo.getSoftwareVersion();
			int majorVersion = Integer.parseInt(version.substring(0, version
			if (majorVersion >= 5) {
				// do anything
			} else {
				// do something for os <5

		} else {
			// user has started the application.