我有一个非常简单的android项目。当我尝试运行它时,收到以下错误 消息。仿真程序正在运行,但应用程序不会启动。我找不到任何有用的信息 在线。谁能帮我?活动未开始,其当前任务已被带到前台
Warning: Activity not started, its current task has been brought to the front
public class Profile extends Activity {
/*Button button1;
CheckBox check1, check2;
EditText text1;*/
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
}
}
<EditText android:text="@+id/EditText01" android:id="@+id/EditText01"
android:layout_width="wrap_content"
android:layout_height="wrap_content" android:enabled="false"></
EditText><CheckBox android:text="@+id/CheckBox03" android:id="@+id/
CheckBox03" android:layout_width="fill_parent"
android:layout_height="wrap_content">
</CheckBox>
<CheckBox android:text="@+id/CheckBox02" android:id="@+id/CheckBox02"
android:layout_width="fill_parent"
android:layout_height="wrap_content">
</CheckBox>
<CheckBox android:text="@+id/CheckBox01" android:id="@+id/CheckBox01"
android:layout_width="fill_parent"
android:layout_height="wrap_content" android:checked="true">
</CheckBox>
</LinearLayout>
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.seiservices.blending"
android:versionCode="1"
android:versionName="1.0">
<application android:icon="@drawable/icon" android:label="@string/
app_name">
<activity android:name=".Profile"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category
android:name="android.intent.category.LAUNCHER" />
<category
android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
</application>
<uses-sdk android:minSdkVersion="8" />
</manifest>
感谢您的快速评论。但是我看不到我的应用在模拟器中运行。仿真器正在运行,我只能看到主屏幕。我应该怎么做才能看到我的应用程序?当我第一次创建应用程序时,我可以看到它在模拟器中运行。 – 2010-09-23 18:21:20
我想你可能会为罗伯特的解决方案提供一个镜头 - 也许这是你的问题。否则:将您的AndroidManifest.xml上传到http://pastebin.com并在此处张贴链接,以便我们查看它。 :-) – mreichelt 2010-09-23 19:44:23
要从Eclipse运行DDMS,请执行以下操作:单击窗口>打开透视图>其他...> DDMS – Will 2013-09-13 21:42:18