Liu Tom
Liu Tom

Reputation: 397

Android - custom permission notice dialog

How can I replace the system notice dialog of the system permission(e.g the GPS) with my own dialog ? Many thanks!

Upvotes: 1

Views: 291

Answers (1)

Kristiyan Varbanov
Kristiyan Varbanov

Reputation: 2509

You can`t..

This is android documentation for permissions:

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".

More details about it : http://developer.android.com/training/permissions/requesting.html

Upvotes: 6

Related Questions