Gps Location On Service - Android
Possible Duplicate: requestLocationUpdates throws exception I'm trying to create a service that when the server ask me, send my location. but can not find the way to do it, sinc
Well, its famous problem, See response in your Exception:
... that has not called Looper.prepare()
You need provide application's main looper.
Here is valid implementation:
mLocationManager.requestLocationUpdates(
LocationManager.GPS_PROVIDER,
15000,
0,
locationListener,
Looper.getMainLooper()
);
Post a Comment for "Gps Location On Service - Android"