I need to obtain coordinates for my application…I am doing this by using LocationManager
LocationManager locationManager = (LocationManager) this.getSystemService(Context.LOCATION_SERVICE);
Now i need to perform the following Task :-
- If suppose the option of “Use GPS Option is Unchecked” then i need to enable it
- I need to obtain location coordinates for a particular range.. Like suppose if i get current coordinate as something then the mobile keep on getting the locations till 100 meters of that current location obtained
- Is there any other good solution of obtaining coordinates apart from LocationManager..Like some open source SDK to obtain it..
Use requestLocationUpdates and removeUpdates while check/uncheck on the checkbox you provided.
Store the first location coordinate and in onLocationChanged keep on checking for the distance using distanceTo API.
Not sure why you need anything else.