Hi what I recommend in your case... is create a service that will be updating the current location... and you charge your var´s with the coordinates... let me show you an example
first you declare the variables
public class MyService extends Service{
private LocationManager mLocationManager = null;
private static final int LOCATION_INTERVAL = 1000;
private static final float LOCATION_DISTANCE = 10f;
String sLat;
String sLong;
and then on your on locationChange method you charge sLat and sLong
public void onLocationChanged(Location location)
{
sLat = Double.toString(location.getLatitude());
sLong = Double.toString(location.getLongitude());
so sLat and sLong they are going to have the location and they will be available whenever you want...
regards...