I am writing my first location-based Android application, but am confused with some GPS api services. Here are some questions I have:
1) To get my current location, I called requestLocationUpdates () with a listener in the onCreate () method of a single action. But what happens when another activity begins and the current activity becomes invisible? Will GPS location update be stopped? If so, how do I save it after switching activity?
2) how accurate is Location.getSpeed ()? How is it calculated? Can you tell the difference between a bike and a walk?
3) not a question about android. How to calculate the coordinates of a location, say, 100 meters from my current location?
4) To stop GPS, do I need to delete all listeners that have been registered with the location manager?
Thank you so much!
source
share