这是logcat中的错误:
FATAL EXCEPTION: Thread-8
android.content.ActivityNotFoundException: No Activity found to handle Intent { act=com.slehmann.volumetimechanger.MAINACTIVITY }
这是我的清单:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.slehmann.volumetimechanger"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="15" />
<application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:screenOrientation="portrait"
android:name=".MainActivity"
android:label="@string/title_activity_main" >
<intent-filter>
<action android:name="com.slehmann.volumetimechanger.APP" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<receiver android:process=":remote" android:name="AlarmReceiver"/>
<activity
android:screenOrientation="portrait"
android:label="@string/app_name"
android:name=".splash" >
<intent-filter >
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
这是我的意图:
} finally {
Intent openMenus = new Intent("com.slehmann.volumetimechanger.MAINACTIVITY");
startActivity(openMenus);
}