android - Activity not started, its current task has been brought to the front -
i have simple android project. got following error message when try run it. emulator running application doesn't come up. couldn't find useful information online. can me?
warning: activity not started, current task has been brought front
public class profile extends activity { /*button button1; checkbox check1, check2; edittext text1;*/ /** called when activity 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>
it not error message, warning. system trying tell you: application on device same application in eclipse. , because application running on device, system tells not going kill , restart it, bring activity of running app foreground. pretty normal. ;-)
the warning not continue if edit code , run (because app killed, reinstalled , started) or if kill process on phone, e.g. via ddms.
Comments
Post a Comment