Has anyone ever created a way to provide a user the ability to toggle permissions within an Android app? -


i creating android app has many newtorking capabilites, want provide them option toggle these permissions on , off. far in manfest have these permissions:

 <uses-permission android:name="android.permission.send_sms" /> <uses-permission android:name="android.permission.receive_sms" /> <uses-permission android:name="android.permission.call_phone"/> <uses-permission android:name="android.permission.internet" /> <uses-permission android:name="android.permission.read_contacts" /> 

i want create preferences activity users can select check box allow each permission, possible? know permissions once added, set, way user have control whether permission can added or not added @ time.

i way user have control whether permission can added or not added @ time.

implement code requires additional permissions plugins, distributed separate apk files. way, user can install or uninstall plugin to, in effect, toggle on or off permission. plugins can interact host application in number of ways: contentprovider, service (command pattern or remote binding pattern), broadcasts, remoteviews ui, etc.


Comments

Popular posts from this blog

jasper reports - Fixed header in Excel using JasperReports -

media player - Android: mediaplayer went away with unhandled events -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -