just check the running threads in the application
if your project is in a java application:
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]); }
if you are using the android app app:
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"; }
source share