Skip to content Skip to sidebar Skip to footer

Getting My Gps Location While I'm Offline

I've doing some research about getting my gps position. I'm using google maps API v2 so in order to get my current position I used this locationManager = (LocationManager) get

Solution 1:

Firstly, you don't have to be connected to internet to get location updates through GPS. If your device supports GPS, it will get connected to the GPS satellites if your outdoors and you can get the location updates through GPS. Read this to know how to use location providers.

Also be informed that if the provider is not turned on, getLastKnownLocation() will always return null. Quoting from android documentaion,

If the provider is currently disabled, null is returned.


Post a Comment for "Getting My Gps Location While I'm Offline"