Java Android应用程序没有';t在设备上启动

Java Android应用程序没有';t在设备上启动,java,android,eclipse,android-intent,emulation,Java,Android,Eclipse,Android Intent,Emulation,我是一名android初学者,我编写了一个基本活动,加载一个图像,等待5秒钟,然后打开包含文本视图的主活动。没有错误,它编译得非常好。但当我在设备上启动时,它不会打开。(也不会在模拟器上打开)。 我不知道这是为什么 这是舱单: <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.exampl

我是一名android初学者,我编写了一个基本活动,加载一个图像,等待5秒钟,然后打开包含文本视图的主活动。没有错误,它编译得非常好。但当我在设备上启动时,它不会打开。(也不会在模拟器上打开)。 我不知道这是为什么

这是舱单:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.gui"
android:versionCode="1"
android:versionName="1.0" >

<uses-sdk
    android:minSdkVersion="8"
    android:targetSdkVersion="17" />

<application
    android:allowBackup="true"
    android:icon="@drawable/ic_launcher"
    android:label="@string/app_name"
    android:theme="@style/AppTheme"
    android:debuggable="true">
    <activity
        android:name="com.example.gui.MainActivity"
        android:label="@string/app_name" >
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.DEFAULT" />
        </intent-filter>
    </activity>
    <activity
        android:name="com.example.gui.Splash"
        android:label="@string/app_name" >
        <intent-filter>
            <action android:name="android.intent.action.SPLASH" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
</application>

</manifest>
下面是我打算开展的另一项活动:

import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;

public class MainActivity extends Activity {

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);
    }


}

我正在网上学习一个教程,由于某些原因,它仍然没有运行。我的布局也很标准。谢谢你的帮助

您可以在manifest.xml文件中设置错误的路径

<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme"
android:debuggable="true">
<activity
    android:name="com.example.gui.Splash"
    android:label="@string/app_name" >
    <intent-filter>
        <action android:name="android.intent.action.MAIN" />

        <category android:name="android.intent.category.DEFAULT" />
    </intent-filter>
</activity>
<activity
    android:name="com.example.gui.MainActivity"
    android:label="@string/app_name" >

我还想补充一点,当我运行应用程序时,我甚至会收到下面的消息。[2013-09-20 03:13:36-GUI]正在安装GUI.apk。。。[2013-09-20 03:13:46-桂]成功![2013-09-20 03:13:46-GUI]/GUI/bin/GUI.apk安装在设备上[2013-09-20 03:13:46-GUI]完成!请不要这样评论你自己的问题,如果你点击“编辑”(就在标签下面),你可以用更多细节更新你的问题吗?
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme"
android:debuggable="true">
<activity
    android:name="com.example.gui.Splash"
    android:label="@string/app_name" >
    <intent-filter>
        <action android:name="android.intent.action.MAIN" />

        <category android:name="android.intent.category.DEFAULT" />
    </intent-filter>
</activity>
<activity
    android:name="com.example.gui.MainActivity"
    android:label="@string/app_name" >
  public class Splash_screen extends Activity {
 private static String TAG = Splash_screen.class.getName();
 private static long SLEEP_TIME = 3;    // Sleep for some time
  @Override
   protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.onCreate(savedInstanceState);
  this.requestWindowFeature(Window.FEATURE_NO_TITLE);    // Removes title bar
  this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,       WindowManager.LayoutParams.FLAG_FULLSCREEN);    // Removes notification bar
  setContentView(R.layout.splash_screen);
  IntentLauncher launcher = new IntentLauncher();
  launcher.start();
}
private class IntentLauncher extends Thread{
  @Override
  /**
   * Sleep for some time and than start new activity.
   */
  public void run() {
     try {
        // Sleeping
        Thread.sleep(SLEEP_TIME*1000);
     } catch (Exception e) {
        Log.e(TAG, e.getMessage());
     }

     // Start main activity
     Intent intent = new Intent(Splash_screen.this,Login_screen.class);
     startActivity(intent);
     finish();
  }
}