java - Requires a permission that's already there? -
I was trying to start an activity from a different project, but when I run it, it crashes And tells me I need permission. I already have a The code that appears for the intention Should the code appear for the activity code? & lt; Use-permission & gt; is added, so I do not know what is wrong to any help
& lt;; ? Xml version = "1.0" encoding = "utf-8" & gt; & Lt; Xmlns Reveal: Android = "http://schemas.android.com/apk/res/android" package = "course.labs.permissionslab" Android: versionCode = "1" Android: versionName = "1.0" & gt; & Lt; Use-sdk android: minSdkVersion = "8" Android: targetSdkVersion = "18" /> & Lt ;! - TODO - Use-allow element addition - & gt; & Lt; Usage-permission Android: name = "course.labs.permissions.DANGEROUS_ACTIVITY_PERM" /> & Lt; Use-permission Android: name = "com.android.browser.permission.READ_HISTORY_BOOKMARKS" />
& lt; XML version = "1.0" encoding = "utf-8" & gt; & Lt; Xmlns Reveal: Android = "http://schemas.android.com/apk/res/android" package = "course.labs.dangerousapp" Android: versionCode = "1" Android: versionName = "1.0" & gt; & Lt; Use-sdk android: minSdkVersion = "13" Android: targetSdkVersion = "18" /> & Lt; Permission Android: name = "course.labs.permissions.DANGEROUS_ACTIVITY_PERM" Android: Details = "@ string / app_name" Android: ProtectionLevel = "Dangerous" & gt; & Lt; / Permission & gt; & Lt; Android Android: allowBackup = "true" android: icon = "@draubable / IC_Luncher" Android: label = "@ string / app_name" Android: Theme = "@ Style / Aaptim" & gt; & Lt; Activity Android: Permission = "course.labs.permissions.DANGEROUS_ACTIVITY_PERM" Android: Name = "Dangerous Activity" Android: label = "@ string / app_name" & gt; & Lt; Intent-Filter & gt; & Lt; Action Android: name = "course.labs.permissions.DANGEROUS_ACTIVITY" /> & Lt; Category android: name = "android.intent.category.DEFAULT" /> & Lt; / Intent-Filter & gt; & Lt; Intent-Filter & gt; & Lt; Action Android: name = "android.intent.action.MAIN" /> & Lt; Category android: name = "android.intent.category.LAUNCHER" /> & Lt; / Intent-Filter & gt; & Lt; / Activity & gt; & Lt; / Application & gt; & Lt; / Reveal & gt;
& lt; Use-permission & gt; must be in the manifest for an app with "dangerous" activity.
Comments
Post a Comment