Minor change

This commit is contained in:
misaochan 2016-02-08 16:08:42 +13:00
parent 2742184489
commit 1ecaafa3de

View file

@ -39,10 +39,11 @@ public class GPSExtractor {
}
protected void registerLocationManager() {
locationManager = (LocationManager) context.getSystemService(Context.LOCATION_SERVICE);
criteria = new Criteria();
provider = locationManager.getBestProvider(criteria, true);
myLocationListener = new MyLocationListener();
locationManager = (LocationManager) context.getSystemService(Context.LOCATION_SERVICE);
locationManager.requestLocationUpdates(provider, 400, 1, myLocationListener);
}