java.lang.SecurityException: Access denied to process: 1363, must have permission android.permission.SET_WALLPAPER
注意:只要资源操,作必须授权
在manifest.xml中添加 权限 android.permission.SET_WALLPAPER
一句话 :<uses-permission android:name="android.permission.SET_WALLPAPER"/>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.myonlongclicklistener"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="10"
android:targetSdkVersion="15" />
<application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name=".MyLongClick"
android:label="@string/title_activity_my_long_click" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
<uses-permission android:name="android.permission.SET_WALLPAPER"/>
</manifest>