java - Android Preference-Specific Permission Requests -


is there way request specific permission when user enables preference?

in case, have option sync calendar add dates , set reminders (to knowledge, can't set reminders in calendar intents). need permission access calendar, when user enables option. i'd to, when user enables preference, request permission, disable option if permission isn't granted.

no. unfortunately there no option that.

no checks user done while application running: either granted particular permission when installed, , can use feature desired, or permission not granted , attempt use feature fail without prompting user.

http://developer.android.com/guide/topics/security/permissions.html


Comments

Popular posts from this blog

ios - iPhone/iPad different view orientations in different views , and apple approval process -

c# - Using multiple datasets in RDLC -

monitor web browser programmatically in Android? -