I've simply made an app that shows my current location co-ordinates. But if I change my location then it is shows my old location co-ordinates. Again if I reboot my device it shows the right co-ordinates.
 Here is a part of my code where I got my co-ordinates:             
    locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER,MIN_TIME_BWN_UPDATE,MIN_DIST_CHANGE_FOR_UPDATES,this);
                if (locationManager != null){
                    location = locationManager.getLastKnownLocation(LocationManager.GPS_PROVIDER);
                }
                if (location != null){
                    longitude = location.getLongitude();
                    latitude = location.getLatitude();
                }
 
     
     
     
    