权限拒绝:…需要android.permission.WRITE_EXTERNAL_STORAGE

所以我碰到的最新壁垒是试图用我的程序写入SD卡。 我越来越:

[2011-05-28 10:00:16 - LatinDictionary] ActivityManager: java.lang.SecurityException: Permission Denial: starting Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=com.joelman.latindictionary/.LatinDictionary } from null (pid=-1, uid=-1) requires android.permission.WRITE_EXTERNAL_STORAGE 

正如你从我的清单中可以看到,我已经添加了许可(我也尝试将其添加到每个活动,无济于事)。 我错过了什么?

 <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.joelman.latindictionary" android:versionCode="1" android:versionName="1.0"> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"></uses-permission> <application android:icon="@drawable/icon" android:label="@string/app_name" android:permission="android.permission.WRITE_EXTERNAL_STORAGE"> <activity android:name=".LatinDictionary"> <intent-filter> <action android:name="android.intent.action.MAIN"></action> <category android:name="android.intent.category.LAUNCHER"></category> </intent-filter> <intent-filter><action android:name="android.intent.action.SEARCH"></action> </intent-filter> </activity> <provider android:name="DictionaryProvider" android:authorities="com.joelman.latindictionary.DictionaryProvider"></provider> </application> </manifest> 

TIA,Joel

Solutions Collecting From Web of "权限拒绝:…需要android.permission.WRITE_EXTERNAL_STORAGE"

应该是这样的:

 <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.joelman.latindictionary" android:versionCode="1" android:versionName="1.0"> <application android:icon="@drawable/icon" android:label="@string/app_name" android:permission="android.permission.WRITE_EXTERNAL_STORAGE"> <activity android:name=".LatinDictionary"> <intent-filter> <action android:name="android.intent.action.MAIN"></action> <category android:name="android.intent.category.LAUNCHER"></category> </intent-filter> <intent-filter><action android:name="android.intent.action.SEARCH"></action> </intent-filter> </activity> <provider android:name="DictionaryProvider" android:authorities="com.joelman.latindictionary.DictionaryProvider"></provider> </application> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"></uses-permission> </manifest> 

将权限行放在应用程序标签之外,但在清单之内