GPS Android – get positioning only once
Dont use the getLastKnownLocation because that could be returning null or old data. This code Only fetches the location once a button is pressed and not every time. People use to leave the location listener listen in every instance and that kills the battery life so Use the code snippet I have posted by doing … Read more