Top "Android-location" questions

android-location refers to the location API provided by the Android framework.

How can I get my current location in Android using GPS?

I want to get my current location in the form of an address by GPS. I am using the android …

android android-location android-gps
Calculating Speed for a navigation app without getSpeed() method

I am developing an app which is more of a time-shift racing between your friends. I need to calculate speed …

android geolocation gps android-location android-navigation
How to time out GPS signal acquisition

My app uses the LocationListener to get one position fix and then removeUpdates() once every minute (to conserve battery). The …

android gps location android-location
Is it possible to get a notification when any location provider is enabled/disabled and ascertain what action occurred?

I wish to receive a notification when the user enables or disables either Network or GPS locations, and importantly I …

android android-location
Unable to start service - Requires ACCESS_MOCK_LOCATION secure setting

I got an exception java.lang.RuntimeException: Unable to start service ... java.lang.SecurityException: Requires ACCESS_MOCK_LOCATION secure setting …

android android-manifest android-location
"Allow all the time" location prompt not coming in Android SDK 29

I can't get the "Allow all the time" prompt for location in SDK 29. I already set these permissions in the …

android android-permissions android-location
Getting location offline

I want to get the value of Longitude and Latitude of my current locatoin when offline and save the current …

android android-location android-gps
What is the difference between shouldShowRequestPermissionRationale and requestPermissions?

I am building an app that requires user location. I am following the Android training documentation from here which says: …

android android-permissions android-location
Starting Settings Activity for result

In my application I'm checking whether the GPS is enabled on the user's device, and if not I would like …

android android-intent android-location
Which is a higher accuracy criteria: ACCURACY_HIGH or ACCURACY_FINE?

In the Criteria class, there are two constants, ACCURACY_HIGH and ACCURACY_FINE, which are apparently used to require the …

android gps android-location