I want to check if the GPS is on if it is should show the current location. If not it should ask to turn it on. If user click cancel or dont turn the coordinates will be set as
Add this override method for me its worked fine--
@Override public void onLocationChanged(Location location) { getLocation("onLocationChanged"); }