활동이 시작되지 않았습니다. 현재 작업이 맨 앞으로 가져 왔습니다.
아주 간단한 안드로이드 프로젝트가 있습니다. 실행하려고 할 때 다음과 같은 오류 메시지가 나타납니다. 에뮬레이터가 실행 중이지만 응용 프로그램이 나타나지 않습니다. 온라인에서 유용한 정보를 찾을 수 없습니다. 누구든지 나를 도울 수 있습니까?
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>
오류 메시지가 아니라 경고입니다. 시스템이 알려주는 내용 : 장치의 애플리케이션은 Eclipse의 애플리케이션과 동일합니다. 그리고 응용 프로그램이 이미 장치에서 실행 중이기 때문에 시스템은이를 종료하고 다시 시작하지 않고 이미 실행중인 응용 프로그램의 활동을 포 그라운드로 가져올 것이라고 알려줍니다. 이것은 매우 정상입니다. ;-)
The warning will not continue if you edit your code and run it (because the app is then killed, reinstalled and started) or if you kill your process on the phone, e.g. via the DDMS.
I've seen this before - you want to re-run your app even though you may not have made any code changes. On the emulator, click the back button (to the right of the menu button) and then run your app as usual from Eclipse.
This happens if you run an app from eclipse without recompiling (recompilation will not be done if you have not changed the code) it doesn't go through the uninstall-install process, instead it pushes the application to the front just like you start application from Home Launcher. It's not an error but a 'working as intended'.
Regards
Project > Clean
and then start your emulator again.
I found eclipse somehow got into a state where it was not building a new apk, even with code changes. Deleting the apk:
rm ./bin/"YOUR APP NAME".apk
and re-running your app from eclipse fixes the problem.
If you get this warning it means you haven't changed any line of your code and this instance of your project is running on emulator or on your device. So if you want to run that again you can:
1- Make some changes in your code and then compile it again.
2- Or you can easily close the app and then relaunch it with eclipse or android studio or ...
If the problem still persist try to uninstall the app and run it again.
On the emulator,
- press "Home"
- "Menu" button -> scroll through the list and select the app which you are running
- press "Force Stop".
This is warning It says app is already running.. I have solved it by recompiling my code and you can close your emulator and re run your app.. GoodLuck Happy coding
'Development Tip' 카테고리의 다른 글
log4net은이 로그 파일을 어디에 생성합니까? (0) | 2020.11.07 |
---|---|
부모가 아닌 텍스트를 포함하는 요소 만 반환하는 XPath (0) | 2020.11.07 |
Ruby 객체 및 JSON 직렬화 (Rails 제외) (0) | 2020.11.07 |
날짜 시간 asc로 PostgreSQL 정렬, 먼저 null입니까? (0) | 2020.11.07 |
Python 2.7에서 HTTP 프록시를 설정하는 방법은 무엇입니까? (0) | 2020.11.07 |