getting incorrect GPS points

2 views
Skip to first unread message

craigr

unread,
Nov 25, 2009, 11:35:52 AM11/25/09
to Seattle Android User Group
I am writing a GPS oriented android application and am getting a
strange bug. When driving around town, it is capturing my GPS
position just fine, but when the phone is sitting on my desk in my
basement (where the GPS signal is intermittent), the application seems
to log random locations that can be up to a mile away from my actual
location.

Any ideas what might be going on? Is there anything that I can put
in my code that will help filter out these incorrect GPS positions?

Thanks,

Craig

Mike Koss

unread,
Nov 25, 2009, 12:03:50 PM11/25/09
to seattle...@googlegroups.com
Have you tried receiving CPS status messages to distinguish between "synthetic" GPS (derived from cell tower location and skyhook location estimates)?

http://developer.android.com/reference/android/location/GpsStatus.html

Mike Koss
StartPad.org
Seattle Software Development Offices
(206) 388-3466
Twitter: @mckoss @startpad



--

You received this message because you are subscribed to the Google Groups "Seattle Android User Group" group.
To post to this group, send email to seattle...@googlegroups.com.
To unsubscribe from this group, send email to seattle-andro...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/seattle-android?hl=en.



Craig Rosenberg

unread,
Nov 25, 2009, 12:28:08 PM11/25/09
to seattle...@googlegroups.com

On the phone, I have “Use wireless networks” disabled in the settings.  I had thought that this would ignore any cell tower locations.   Also, in the code here is how I am requesting the GPS service

 

private void registerInitialListeners() {

            getLocationManager().requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, meters, this);

      }

 

From: mi...@mckoss.com [mailto:mi...@mckoss.com] On Behalf Of Mike Koss
Sent: Wednesday, November 25, 2009 9:04 AM
To: seattle...@googlegroups.com
Subject: Re: [Seattle Android] getting incorrect GPS points

 

Have you tried receiving GPS status messages to distinguish between "synthetic" GPS (derived from cell tower location and skyhook location estimates)?

Lee Fisher

unread,
Dec 7, 2009, 3:02:51 PM12/7/09
to seattle...@googlegroups.com
GPS Status and GPS Test are both good Android apps to test the GPS.
Maybe their diagnostics might showcase the problem.

http://www.androlib.com/android.application.com-android-gpstest-qjx.aspx
http://www.androlib.com/android.application.com-eclipsim-gpsstatus2-zF.aspx

PS: Nice to see the group active, with non-spam!


Reply all
Reply to author
Forward
0 new messages