Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I finally found a way to solve this problem (see <a href="https://stackoverflow.com/questions/17734904/using-google-maps-location-without-activity">my question here</a>).</p> <p>In my case on S3 Galaxy Mini there were similar symptoms (no location updates until reboot...) like the ones described above. Location in most cases stopped updating when the device reached low power conditions, but sometimes it just happened even when the phone was fully charged. Obviously this is a problem somewhere in the <code>LocationManager</code>. I managed to bypass <code>LocationManager</code> by using the new Google Play Services API for locations (<code>LocationClient</code> class). </p> <p>This is probably the reason why the location updates were still working with Google Maps, because Google Maps were using Google Play Services API even before it was made public.</p> <p>I recommend you to follow <a href="https://developer.android.com/training/location/retrieve-current.html" rel="nofollow noreferrer">this link</a> which shows the way how to use Play Services API to get locations instead of using <code>LocationManager</code> if you encounter this problem.</p> <p>Im running location updates with Play Services and there were absolutely no problems like this anymore - I keep receiving regular location updates anytime.</p> <p><strong>Beware</strong> that this will require that the user must have Google Play installed on their device, so Kindles and the like will be out of the picture. It also requires a minimum of Android 2.2.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload