Appears when this is the last time the getLastKnownLocation () is provided, it provides the location of this provider last time, I am using I'm a GPS provider and if the GPS has not been set up yet, then I want to empty it. So basically, I would like any of the following:
- How to reset the GPS location (so when it's called Mistgestolan space () that it is empty)
or
- How to see if the GPS location is set
Any help is appreciated ... Thanks < / P>
Have you tried to request permission from the
ACCESS_FINE_LOCATION provider in your manifest Is it Then call the hotel manager, getLastKnownLocation (LocationManager.GPS_PROVIDER)?
You should return to the last known location obtained by the GPS provider, if it can not get the place
- How to see if the GPS location is set
No comments:
Post a Comment