1

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

1 Answer 1

6

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

Sign up to request clarification or add additional context in comments.

3 Comments

Thanks for your reply, so I can't do it in any version of android ,right ?
Yep, on the new versions of android you can only controll when permission must be shown etc. live time permission, in the old version you must declare them into Manifest.
OK ,Thank you very much!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.