Gps Location On Service - Android March 21, 2024 Post a Comment 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, sincSolution 1: Well, its famous problem, See response in your Exception: ... that has not called Looper.prepare() CopyYou need provide application's main looper.Here is valid implementation:mLocationManager.requestLocationUpdates( LocationManager.GPS_PROVIDER, 15000, 0, locationListener, Looper.getMainLooper() ); Copy Share Post a Comment for "Gps Location On Service - Android"
Post a Comment for "Gps Location On Service - Android"