04-12-2007, 07:56 PM
Join Date: Jun 2006
Post Thanks: 0
Thanked 0 Times in 0 Posts
| | Controlling GPS? -- Can't getInstance
Please Login to Remove!
I'm been successful in using the Locaton API to access the GPS (BB 8800) and get coordinates, speed, course, etc. The program is very simple. However, when I port the same thread to an application running in the background, I get an exception error when I call LocatorProvider.getInstance(criteria). The exception results from the method not being able to get an application instance.
Does anyone have any idea why the LocatorProvider instance can't be found? I haven't changed the Criteria.
I'm a little confused on how to explicitly activate and deactivate the GPS hardware.