How to show location settings dialog in android?

From google i / o 2015, I found out that google play has a new dialog box where the user does not need to exit the current application to enable it. here is the image below that shows how it looks:

enter image description here

Now my question is: how can I implement this in my project? I searched, but could not find a valid answer, please help!

+6
source share
1 answer

Take a look at the google service documetation for api's and you will find everything well documented. Upon your request, I suggest using LocationSettingsRequest.Builder to achieve your goal.

I found a Kai example in stackoverflow: Link

+5
source

Source: https://habr.com/ru/post/988445/


All Articles