I have an app that has to get the actual latitude and longitude. I am trying to use the code posted here to do so: How do I get the current GPS location programmatically in Android? The class GPSTracker
.
The problem is that sometimes it is too slow to get the location and it sometimes gets a outdated location. I don't need to keep tracking the location, I just need to get the location when the user presses a button. The maps app from Google can get it so fast, how can I do that?