user3386025 user3386025 - 1 year ago 112
Android Question

Android Fused LocationSettingsRequest remove "never" option from startResolutionForResult

aAccording to this:

You can check if location requirements are met and show a dialog if not, using


In that dialog, you can choose "ok", "not this time" or "never".

Is it possible to disable that "never" option?

Google Maps official app has that option disabled.

Answer Source

Yup, so you would do it when you're building the settings request by using LocationSettingsRequest.Builder.setAlwaysShow(true). An example would look like this:

LocationSettingsRequest.Builder builder = new LocationSettingsRequest.Builder()
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download