PDA

View Full Version : New Coder For WinMobile


Buzz_Litebeer
6th January 2009, 04:39 PM
I have some questions about coding specifically, this seems like something to put in the development forum, but its rules seem to specify that it is not.

I am making some GPS applications currently for my phone and would like to have some tips on being "friendly" with other GPS programs.

I have created a program that does GPS tracking and records coordinates and speed while driving. When I run this at the same time as Google Maps, it loses the ability to query the GPS device intermittently. What I would like is to be able to see if the GPS device itself is available. Currently I am using the GPS library provided by the Microsoft Sample with some edits (it was doing some unfortunate thread locking that it had no right to know about for a class library).

My hope is that my GPS app can recognize that another program is using it, OR it can recognize that the GPS device has been disabled by another program and turn it back on. Currently the sample library is either Open or Closed but does not actually seem to query the device to get these device states back.

Does anyone have some good example code for this? I intend to keep coding it, but right now it seems I will have to ignore other software on the phone that might be using it until I can get some help on this.