Android runtime permissions on android versions below M?

1.4k views Asked by At

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?

1

There are 1 answers

2
CommonsWare On BEST ANSWER

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