Kamlendra Pandey
Kamlendra Pandey

Reputation: 366

Is there any way to remove "While Using The App" option from each permissions popup?

Due to some compliance, We are only allowed to take respective permission each time when user use that feature.

Obvious Scenario Required Scenario
Obvious Scenario Required Scenario

Upvotes: 0

Views: 229

Answers (2)

Gabe Sechan
Gabe Sechan

Reputation: 93678

There's no way to do that. But what you can do is use checkSelfPermission to see if you've already been granted that permission, and if so pop up a custom dialog to ensure it's still ok. Obviously the OS can't enforce that, but you can.

Upvotes: 1

Mahdi Razzaghi
Mahdi Razzaghi

Reputation: 383

The short answer is, you can't.

As android documentation puts:

When your app calls requestPermissions(), the system shows a standard dialog box to the user. Your app cannot configure or alter that dialog box. If you need to provide any information or explanation to the user, you should do that before you call requestPermissions(), as described in "Explain why the app needs permissions".

So, there is no way to change dialog for the permission.

You can find more detailed information here: http://developer.android.com/training/permissions/requesting.html

Upvotes: 1

Related Questions