private void GPSstart() { // gpsLocation = new GPSLocation(locationManager, this); gpsLocation = GPSLocation.get(locationManager, this, this); mlatitude = GPSLocation.getLatitude(); mlongitude = GPSLocation.getLongitude(); gpsLocation.requestLocationUpdates(locationManager); gpsLocation.onLocationChanged(GPSLocation.location); }
public static GPSLocation get( LocationManager locationManager, Context context, CallBack callBack) { if (_instance == null) { _instance = new GPSLocation(locationManager, context); _instance.context = context; _instance.callBack = callBack; } return _instance; }