diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-02-11 22:29:02 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2016-11-10 17:40:54 +0100 |
commit | c885a3c127a9ab64fad5535b6c1f9e42e4689f7b (patch) | |
tree | 52ce77898112155c41b179837fc3d6627bf53d54 /Android/03-Permissions/DangerousApp/AndroidManifest.xml | |
parent | 3c228228209bb186ab6881eb9b9bae10c1d5c893 (diff) | |
download | coursera-c885a3c127a9ab64fad5535b6c1f9e42e4689f7b.zip coursera-c885a3c127a9ab64fad5535b6c1f9e42e4689f7b.tar.gz |
Android : 03-Permissions: add
Diffstat (limited to 'Android/03-Permissions/DangerousApp/AndroidManifest.xml')
-rw-r--r-- | Android/03-Permissions/DangerousApp/AndroidManifest.xml | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/Android/03-Permissions/DangerousApp/AndroidManifest.xml b/Android/03-Permissions/DangerousApp/AndroidManifest.xml new file mode 100644 index 0000000..c9283a5 --- /dev/null +++ b/Android/03-Permissions/DangerousApp/AndroidManifest.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="utf-8"?> +<manifest xmlns:android="http://schemas.android.com/apk/res/android" + package="course.labs.dangerousapp" + android:versionCode="1" + android:versionName="1.0" > + + <uses-sdk + android:minSdkVersion="13" + android:targetSdkVersion="18" /> + + <!-- + TODO - Using a permission element, + define a custom permission with name + "course.labs.permissions.DANGEROUS_ACTIVITY_PERM" + and "dangerous" protection level. + --> + + <application + android:allowBackup="true" + android:icon="@drawable/ic_launcher" + android:label="@string/app_name" + android:theme="@style/AppTheme" > + <!-- TODO - enforce the custom permission on this Activity --> + + <activity + android:name=".DangerousActivity" + android:label="@string/app_name" > + + <!-- + TODO - add additional intent filter info so that this Activity + will respond to an Implicit Intent with the action + "course.labs.permissions.DANGEROUS_ACTIVITY" + --> + + + <intent-filter> + <action android:name="android.intent.action.MAIN" /> + <category android:name="android.intent.category.LAUNCHER" /> + </intent-filter> + </activity> + </application> + +</manifest> |