Explanation
To get location in Android , you need to request the following permissions in your app's manifest: ACCESS_COARSE_LOCATION : Allows the API to return an approximate location ACCESS_FINE_LOCATION : Allows the API to return a precise location ACCESS_BACKGROUND_LOCATION : Allows the app to access location in the background