은 응용 프로그램
에서 실행중인 스레드를 확인하십시오
int active = Thread.activeCount();
System.out.println("currently active threads: "+active);
Thread all[] = new Thread[active];
Thread.enumerate(all);
for (int i = 0; i < active; i++) {
System.out.println(i + ": " + all[i]);
}
당신은 안드로이드 프로젝트의 응용 프로그램을 사용하여 r에있는 경우 :
String run="";
int active =Thread.activeCount();
System.out.println("currently active threads: " + active);
Thread all[] = new Thread[active];
Thread.enumerate(all);
for (int i = 0; i < active; i++) {
run+=all[i]+"\n";
}
// declare the EditText in your main thread
edittext.setText(run);
이 더 많거나 적은을 [this post] (http://stackoverflow.com/questions/8407408/asynctask-keeps-waiting/8407518#8407518)의 사본. – kabuko