警告:尚未开始活动,其当前的任务已被带到前面 [英] Warning: Activity not started, its current task has been brought to the front

查看:226
本文介绍了警告:尚未开始活动,其当前的任务已被带到前面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我认为这个问题是非常平常。在#1,许多成果已经说过这一点。一般的回答是:因为旧的应用程序正在运行,我尝试从Eclipse运行一个新的(但在编译没有变化),因此Android会注意到这个

I think this question is very usual. Many results on Stackoverflow has said about this. The general answer is: because an old app is running, and I try to run a new one from Eclipse (but no change in compile), so Android will notice this.

不过,我已经做了很多事情,我可以:

But, I have done many things as I could:

  1. 变化的东西日食再次重建。
  2. 重新启动Eclipse或模拟器

不过,此警告仍然存在(当然,我的应用程序仍不能运行)。

But this warning still exists (and of course, my app still cannot run).

下面是我的清单文件。请看看这个文件,并帮助我。

Here is my manifest file. Please take a look at this file and help me.

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"\
    package="com.game.mrnom"
    android:versionCode="1"
    android:versionName="1.0" >
    <uses-sdk android:minSdkVersion="8" />
    <application
        android:debuggable="true"
        android:icon="@drawable/icon"
        android:label="Mr.Nom" >
        <activity
            android:label="Mr.Nom"
            android:name=".MrNomGame"
            android:screenOrientation="portrait"
            android:configChanges="keyboard|keyboardHidden|orientation" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>
    <uses-permission android:name="android.permission.WAKE_LOCK"/>
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
    <uses-sdk android:targetSdkVersion="8" android:minSdkVersion="8"/>
</manifest>

感谢您的阅读。

推荐答案

如果您编辑一个字符(删除一个字符和替换它),然后从Eclipse启动,它将重新安装应用程序,你不会得到此消息。

If you edit one character (delete a character and replace it) and then launch from eclipse, it will re-install the app, and you won't get this message.

这篇关于警告:尚未开始活动,其当前的任务已被带到前面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆