Android:错误代码解释?

时间:2014-04-02 22:47:03

标签: android debugging android-intent

我一直在尝试修复以下错误代码这么久,无法解决。我的应用中出现此错误的原因是什么?清单也可能有问题吗?

  [2014-04-02 23:44:32 - Multapply] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.example.multapply/.Splash }
    [2014-04-02 23:44:32 - Multapply] ActivityManager: Warning: Activity not started, its current task has been brought to the front

上面的错误/警告中提到的Splash Activity:

public class Splash extends Activity {

    // set up vars
    MediaPlayer song;

    @Override
    protected void onCreate(Bundle savedInstanceState) {

        super.onCreate(savedInstanceState);

        // setting the layout of activity to relate to splash.xml
        setContentView(R.layout.splash);

        // setting up media player object
        song = MediaPlayer.create(Splash.this, R.raw.splash);
        song.start();

        Thread timer = new Thread() {

            // Method that firstly starts the thread and makes it sleep, then
            // using
            // intents opens the main activity (usings refernce to its name, see
            // manifest)
            public void run() {

                try {

                    sleep(5000);
                } catch (InterruptedException e) {
                    // exceptions caught in here
                    e.printStackTrace(); // useful for debugging

                } finally {

                    Intent openMenu = new Intent("com.example.multapply.menu");
                    startActivity(openMenu);

                }
            }

        };

        timer.start();

    }

    @Override
    protected void onPause() {

        super.onPause();
        //finishes activity
        finish();
        //releases song
        song.release();
    }

}// class end

1 个答案:

答案 0 :(得分:0)

这只表示您的应用仍在运行。打开正在运行的应用程序列表,关闭您的应用程序,然后尝试从计算机重新加载它。在某些情况下,我必须卸载应用程序然后重新安装它,但它并不经常发生。

相关问题