7

Find user position with a timeout

view full story
linux-howto

http://stackoverflow.com – I need to find the user position with a timeout, then I wrote a code like this Start a LocationListener `_GPSLocationListener = new LocationListener() { @Override public void onLocationChanged(Location location) { _timerGPSLocation.cancel(); } @Override public void onStatusChanged(String provider, int status, Bundle b) { } @Override public void onProviderEnabled(String s) { } @Override public void onProviderDisabled(String s) { } }; _locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, minTime, minDistance, _GPSLocationListener); Setup a timer for the ti (HowTos)