No GPS location updates on Galaxy S3

2019-06-27 04:50发布

I'm developing a GPS tracker and it works like a charm. But a couple of weeks ago a customer of me (a trackage company) bought Samsung Galaxy S3s for his drivers. And since that we have really strange behaviour of my app.

The app receives location updates from GPS receiver, but after some hours of work it doesn't receive any location updates.

I have registered the app for onGpsStatusChanged() too and in this time onGpsStatusChanged() was called (I see that GPS receiver have 10-17 satellites!), but the method onLocationChanged() was not called! After the service restart (=re-registering of LocationListener) it works again. It is really strange. It seems that after some hours of work the GPS reciever is not in the mood for calling onLocationChanged() :)

Any idea what may be wrong?

@matekm: The log looks like:

onLocationChanged() <- new location

onGpsStatusChanged() (GPS started / stopped / GPS_EVENT_SATELLITE_STATUS etc)

...

onLocationChanged() <- new location

onGpsStatusChanged() (GPS started / stopped / GPS_EVENT_SATELLITE_STATUS etc)

...

onLocationChanged()

<<<<< - from here no location updates more and no other GPS event status except GPS_EVENT_SATELLITE_STATUS!

onGpsStatusChanged() GPS_EVENT_SATELLITE_STATUS numOfSatellites=15 onGpsStatusChanged() GPS_EVENT_SATELLITE_STATUS numOfSatellites=15 onGpsStatusChanged() GPS_EVENT_SATELLITE_STATUS numOfSatellites=16 onGpsStatusChanged() GPS_EVENT_SATELLITE_STATUS numOfSatellites=15 onGpsStatusChanged() GPS_EVENT_SATELLITE_STATUS numOfSatellites=17 onGpsStatusChanged() GPS_EVENT_SATELLITE_STATUS numOfSatellites=15 ...

标签: android gps
1条回答
Evening l夕情丶
2楼-- · 2019-06-27 05:32

I read somewhere the S3 supports GLONASS, and it works a tat different then the GPS system thats normally worked in the other phones, like the S2, although I believe GLONASS is a backup, or it works together. It might be that it sends wrong coordinates or coordinates in a form your application cant read. But if you say it works for 4 hours on an S3 but then fails. It doesn't happen on other phones, just on the S3. Might maybe be handy to narrow it down to see if other phones have the same problem or just the S3?

查看更多
登录 后发表回答