此安全異常停止我的程序來執行完全的Android權限拒絕:啓動意圖
ActivityManager: java.lang.SecurityException: Permission Denial: starting Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=com.kite.agm/.KiteActivity } from null (pid=31991, uid=2000) requires null
如何解決這件事?
這是清單文件
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.kite.agm"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk android:minSdkVersion="10" />
<application
android:icon="@drawable/pbird_1"
android:label="@string/app_name"
>
<activity
android:name=".SplashScreen"
android:label="@string/app_name"
android:screenOrientation="landscape" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name="MenuScreen"
android:orientation="horizontal"
android:screenOrientation="landscape" />
<activity android:name=".KiteActivity"
android:orientation="horizontal"
android:screenOrientation="landscape"
android:permission="android.permission.PERSISTENT_ACTIVITY" >
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.DEFAULT" />
</activity>
<activity android:name=".GameOver"
android:orientation="horizontal"
android:screenOrientation="landscape" />
</application>
顯示您的清單PLZ,你是否嘗試將該活動添加進去?你的清單文件? – toantran
這是清單文件 –
PERSISTENT_ACTIVITY已棄用。你想做什麼? – dmon