|
GPSTrack Continue to Track in Background -
08-05-2007, 02:03 PM
All,
Thanks to Dana Peters providing the source code and me loving this app for the basic functionality it provides, simply and easily. I have found a way to make this application run in the background so you can take calls, send emails and do whatever you want while tracking your movements with GPS. I have done some limited testing of the application and the basic function works in the background great. First, I am not a programmer but the code was very easy to follow and after looking at some other code for the BB I was able to find a way to get this app to continue running in the background.
There was a bug I found in the application, which has nothing to do with my changes but was always a bug with the way the app worked on the BB as I tested it with the original file from the developer. I have yet to find a bug in my simple change to the code to allow it to work in the background but would like to hear what others experience as well.
The bug is that while tracking there is a "Next" option in the menus and it will display current GPS location and if you click "Next" again it will show the satellites that are connected and finally if you click "Next" again it will take you back to the tracking status screen. Now if after going through the next screens and you arrive back at the status screen you click "Stop" the application freezes. You can Alt-Tab out of the application but you will eventually get a process terminated due to lack of response error message. It appears the track is saved but I have not confirmed this for sure. Anyhow, if you run into this bug, I haven't looked into fixing it because quite frankly I don't care enough to at this point. If you just leave it on the track status screen once you start tracking and "Stop" without going to the other screens using the "Next" option it functions without error.
Anyhow, here is the cod and alx for installation, if someone has a server they want to host the jar and jad files, I would be happy to email those over for hosting for OTA download as well.
I make no warranties on this application and one last thing, you will probably need 4.2.1.x OS because 4.2.0.x gives an API error with this application which is inherent in the original version from the developer as well.
Good luck,
SIB
|