所以我有一个应用程序并想连接到活动,但由于某种原因它无法连接并且它一直崩溃
Thread logotimer = new Thread(){
public void run(){
try{
sleep(1500);
Intent logoLessius = new Intent("com.theludus.Mainpage");
startActivity(logoLessius);
}
catch(InterruptedException e){
e.printStackTrace();
}
finally{
finish();
}
}
};
logotimer.start();
这是必须连接下一页的代码,接下来是我的android清单
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen" >
<activity
android:name="com.theludus.Startup"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="com.theludus.Mainpage"
android:label="@string/title_activity_mainpage" >
</activity>
<activity
android:name="com.theludus.NewGame"
android:label="@string/title_activity_new_game" >
</activity>
<activity
android:name="com.theludus.GamePage"
android:label="@string/title_activity_game_page" >
</activity>
</application>
这就是我的 logcat 所说的
05-12 15:22:05.393: E/AndroidRuntime(26537): FATAL EXCEPTION: Thread-2649
05-12 15:22:05.393: E/AndroidRuntime(26537): android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.Mainpage }
05-12 15:22:05.393: E/AndroidRuntime(26537): at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1512)
05-12 15:22:05.393: E/AndroidRuntime(26537): at android.app.Instrumentation.execStartActivity(Instrumentation.java:1384)
05-12 15:22:05.393: E/AndroidRuntime(26537): at android.app.Activity.startActivityForResult(Activity.java:3190)
05-12 15:22:05.393: E/AndroidRuntime(26537): at android.app.Activity.startActivity(Activity.java:3297)
05-12 15:22:05.393: E/AndroidRuntime(26537): at com.theludus.Startup$1.run(Startup.java:21)