BlackBerry Forums Support Community

Closed Thread
LinkBack Thread Tools
Old 07-02-2007, 12:50 AM   #1 (permalink)
New Member
Join Date: Jun 2007
Model: 8800
Carrier: Vodafone
Posts: 11
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Blackberry Functionality

Please Login to Remove!


I was wondering if anyone knew for a fact whether the following things can be done by a developer. Simple yes or no is fine, but if it is yes, some direction into the class or examples would be greatly appreciated.

1. Can you auto-restart your own application if it is closed (ovbiously can't within the same app, cause it is closed)? Is there any way to do this at all?

2. Is there anyway to assign a key to launch an application, or bring it to the foreground?

3. With GPS, is there any way to trigger on an event, such as going over a certain speed, changing heading by a certain amount, etc?

That is all. Thanks heaps for any help, much appreciated.

Old 07-07-2007, 08:59 AM   #2 (permalink)
Talking BlackBerry Encyclopedia
Skipper_Joe's Avatar
Join Date: Jan 2007
Location: Kharkov, Ukraine
Model: 8300
Carrier: N/A
Posts: 237
Post Thanks: 0
Thanked 0 Times in 0 Posts

1) I know 2 solutions for tthis:
you can not to give user functionality to close your app - minimize it instead exit. I did it myself in my apps couple of times.
you can run another small application in background, which will check, if first application is running, and restart it.

2) Question is not clear to me. You can programmatically launch application or request foreground for it using net.rim.device.api.system.ApplicationManager

3) No. but you can acquire a fix every defined period of time and check if some condition is met yourself.

Hope it will help!

Copyright 2004-2016
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.