Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

GPSID - GPSGetPosition

15 views
Skip to first unread message

Jeanne

unread,
Oct 30, 2009, 2:35:01 PM10/30/09
to
Hi,

I'm currently using the GPSID to get a GPS position in my C# application.
I've found that if the phone goes into "useridle" mode, my calls to
GPSGetPosition return the same position from before the phone was in
"useridle" mode or an invalid position all together. Any ideas on how I can
resolve this?

I'm using an HTC Ozone phone.

Thanks
Jeanne

Peter Foot

unread,
Nov 2, 2009, 2:51:18 PM11/2/09
to
Check the dwFlags member of the GPS_POSITION. This will be set to
GPS_DATA_FLAGS_HARDWARE_OFF if the hardware has been turned off and the data
returned is old cached data.

Regards,

Peter

--
Peter Foot
Microsoft Device Application Development MVP
peterfoot.net | appamundi.com | inthehand.com
APPA Mundi Ltd - software solutions for a mobile world
In The Hand Ltd - .NET Components for Mobility

"Jeanne" <Jea...@discussions.microsoft.com> wrote in message
news:0ED7A00B-17A5-4678...@microsoft.com...

0 new messages