1

How to requestLocationUpdates() periodically in a thread?

view story
linux-howto

http://stackoverflow.com – I used a service to collect the location information. like static int count = 1; @Override public void onStart(Intent intent, int startId) { /* updating location when sevice is starting */ locationManager = (LocationManager)getSystemService(Context.LOCATION_SERVICE); locationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 1000, TEN_METERS, locationListener); isLocationing = true; startPollingAndSending(); ... ... } in the following function, I implemented the location requests. void startPollingAndSending() { ScheduledExecutorService schedu (HowTos)