summaryrefslogtreecommitdiff
path: root/samples/StackWidget/src/com/example/android/stackwidget/StackWidgetService.java
diff options
context:
space:
mode:
authorNick Kralevich <nnk@google.com>2013-03-26 16:39:21 -0700
committerNick Kralevich <nnk@google.com>2013-03-27 16:54:04 -0700
commit2ad812d4aa82cb18e6cd650497acaa7a3f394df9 (patch)
tree4344992c10eed969cad8b0029092740a060a7027 /samples/StackWidget/src/com/example/android/stackwidget/StackWidgetService.java
parentccf3ef27cec7e4ffe5b604ab0ee01ad23a5b479f (diff)
Initial checkin: optional permissions sample code
This is an initial checkin of a small demonstration program which demonstrates how optional permissions can be used. This app can do three things, which require permissions: * Vibrate the device (android.permission.VIBRATE) * Access the internet (android.permission.INTERNET) * Get the phone number (android.permission.READ_PHONE_STATE) At install time, this app has zero permissions. However, the app can request that the user grant permissions, based on pressing the "Prompt" button. The user can then choose to allow or deny the permissions. Known bugs and limitations: * Once a permission is granted, it currently cannot be revoked by the application nor the user. * Due to the way it's implemented, the INTERNET permission requires a restart of the application. That isn't in the sample code. * Getting the device phone number doesn't make sense for a tablet. This code was mostly written by klyubin@google.com with heavy modification by myself. Change-Id: I620db52c4a1f10ac7aa604ba34f77f7ec03af023
Diffstat (limited to 'samples/StackWidget/src/com/example/android/stackwidget/StackWidgetService.java')
0 files changed, 0 insertions, 0 deletions