java를 처음 사용했습니다. 나는 listview를 만들었고 내 패키지를 AndroidList로 명명하고 그것이 에뮬레이터에서 어떻게 작동하는지 보려고했지만 "안타깝게도 Androidlist가 멈췄다"라는 오류가 발생합니다. 여기 앱을로드 할 때 오류가 발생했습니다.
이 된 .java 코드package com.exercise.androidlist;
import android.app.ListActivity;
import android.os.Bundle;
import android.widget.ArrayAdapter;
public class AndroidList extends ListActivity {
String[] DayOfWeek = {"Sunday", "Monday", "Tuesday",
"Wednesday", "Thursday", "Friday", "Saturday"
};
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
//setContentView(R.layout.main);
setListAdapter(new ArrayAdapter<String>(this,
android.R.layout.simple_list_item_1, DayOfWeek));
}
}
입니다 그리고 여기에 로그 캣 응용 프로그램이 어떤 뷰를로드하지 않기 때문에 아마
02-13 21:24:02.330: W/Trace(409): Unexpected value from nativeGetEnabledTags: 0
02-13 21:24:02.330: W/Trace(409): Unexpected value from nativeGetEnabledTags: 0
02-13 21:24:02.390: W/Trace(409): Unexpected value from nativeGetEnabledTags: 0
02-13 21:24:02.390: W/Trace(409): Unexpected value from nativeGetEnabledTags: 0
02-13 21:24:02.500: W/Trace(409): Unexpected value from nativeGetEnabledTags: 0
02-13 21:24:02.531: W/Trace(409): Unexpected value from nativeGetEnabledTags: 0
02-13 21:24:02.531: I/Choreographer(409): Skipped 35 frames! The application may be doing too much work on its main thread.
02-13 21:24:02.600: W/Trace(409): Unexpected value from nativeGetEnabledTags: 0
02-13 21:24:02.600: W/Trace(409): Unexpected value from nativeGetEnabledTags: 0
02-13 21:24:02.693: W/Trace(409): Unexpected value from nativeGetEnabledTags: 0
02-13 21:24:02.693: W/Trace(409): Unexpected value from nativeGetEnabledTags: 0
02-13 21:24:02.720: I/Choreographer(409): Skipped 44 frames! The application may be doing too much work on its main thread.
02-13 21:24:02.812: E/StrictMode(628): android.app.ServiceConnectionLeaked: Service com.android.exchange.ExchangeService has leaked ServiceConnection [email protected]da940 that was originally bound here
02-13 21:24:02.812: E/StrictMode(628): at android.app.LoadedApk$ServiceDispatcher.<init>(LoadedApk.java:969)
02-13 21:24:02.812: E/StrictMode(628): at android.app.LoadedApk.getServiceDispatcher(LoadedApk.java:863)
02-13 21:24:02.812: E/StrictMode(628): at android.app.ContextImpl.bindService(ContextImpl.java:1418)
02-13 21:24:02.812: E/StrictMode(628): at android.app.ContextImpl.bindService(ContextImpl.java:1407)
02-13 21:24:02.812: E/StrictMode(628): at android.content.ContextWrapper.bindService(ContextWrapper.java:473)
02-13 21:24:02.812: E/StrictMode(628): at com.android.emailcommon.service.ServiceProxy.setTask(ServiceProxy.java:157)
02-13 21:24:02.812: E/StrictMode(628): at
02-13 21:24:05.291: W/Trace(409): Unexpected value from nativeGetEnabledTags: 0
02-13 21:24:05.291: W/Trace(409): Unexpected value from nativeGetEnabledTags: 0
02-13 21:24:05.380: W/Trace(409): Unexpected value from nativeGetEnabledTags: 0
02-13 21:24:05.380: W/Trace(409): Unexpected value from nativeGetEnabledTags: 0
02-13 21:24:05.411: I/Choreographer(409): Skipped 39 frames! The application may be doing too much work on its main thread.
@Downvoter : 왜 이것이 -1이 될까요? 그것은 다른 대답과 같습니다 ... –