Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android runtime permissions on android versions below M?

Runtime Android permissions

Recently my ola cabs application, after the latest update, asked for location permission at runtime. It did not open the location settings screen but just by clicking on yes, my location (GPS) of the device was turned on and the application proceeded without going to location settings or any settings screen. This feature was about to come in android M and is available on the MNC preview only, so I am guessing it cannot be used in devices at this point of time. So how is this application implementing this feature?

like image 542
gopi1410 Avatar asked Apr 20 '26 05:04

gopi1410


1 Answers

It is using SettingsApi in the Play Services SDK 7.0+, to display the location settings dialog.

like image 93
CommonsWare Avatar answered Apr 22 '26 19:04

CommonsWare



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!