LocationManager
LocationManager copied to clipboard
Simplify getting user's location for Android
When i press enable GPS button in the default provider GPS dialog, it opens the setting screen with request code RequestCode.GPS_ENABLE but onActivityResult is being called with a random request...
I don't have google services on my phone. So I am trying to use useDefaultProviders. When the phone is in the building, I can't get the coordinates. When I go...
**onActivityResult(Int, Int, Intent?): Unit' is deprecated. Overrides deprecated member in 'androidx.activity.ComponentActivity'. Deprecated in Java For LocationBaseActivity** ### Configuration ``` _Android Studio_ Android Studio Arctic Fox | 2020.3.1 Patch 3 Build...
Thanks for the library. Have you an example of using the library to allow ACCESS_BACKGROUND_LOCATION?
Update project and improve code
...Getting class cast Exception on library's GooglePlayServicesLocationProvider on failure method... ### Logs Fatal Exception: java.lang.ClassCastException: ya1 cannot be cast to db1 at [com.yayandroid.locationmanager.providers.locationprovider.GooglePlayServicesLocationProvider.onFailure GooglePlayServicesLocationProvider.java:3] at com.yayandroid.locationmanager.providers.locationprovider.GooglePlayServicesLocationSource$1.onFailure GooglePlayServicesLocationSource.java:2 at [com.google.android.gms.tasks.zzk.run] [zzk.java:6]...
Fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'void c.h.a.b.c.release()' on a null object reference at com.yayandroid.locationmanager.providers.locationprovider.DefaultLocationProvider.onLocationChanged(DefaultLocationProvider.java:231) at android.location.LocationListener.onLocationChanged(LocationListener.java:63) at android.location.LocationManager$LocationListenerTransport$1.operate(LocationManager.java:3247) at android.location.LocationManager$LocationListenerTransport$1.operate(LocationManager.java:3244) at com.android.internal.listeners.ListenerExecutor.lambda$executeSafely$0(ListenerExecutor.java:127) at com.android.internal.listeners.ListenerExecutor$$ExternalSyntheticLambda0.run(:8) at android.os.Handler.handleCallback(Handler.java:942) at...
Hi, it works great with old lib implementation 'com.google.android.gms:play-services-location:20.0.0' but crashes the app with new lib implementation 'com.google.android.gms:play-services-location:21.0.0'