0

此安全异常正在阻止我的程序完全执行

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>

4

1 回答 1

1

可能你忘了在这里打句号

<activity android:name="MenuScreen"
        android:orientation="horizontal"
        android:screenOrientation="landscape" />

<activity android:name="MenuScreen"

应该:

<activity android:name=".MenuScreen"
于 2012-09-14T04:50:11.013 回答