I want to have the current user GeoLocation but everytime I run my application it takes the last accessed user GeoLocation. How can I get the latest user GeoLocation using Network Service or GPS?
I have removed updates while exiting the application but still its taking the last user location.
Is there anyway to get the current user location as the application starts freshly?
I want to have the current user GeoLocation but everytime I run my application
Share
When the application starts, there is no guarantee that the current location has even been found. Using the last location is the fastest way to get a location, however if you want the current location, you must wait until a location is found. You can do this be
implementingLocationListener, andoverridingonLocationChanged(Location).