How to get current threads in an Android process?

Is there a way to find out all the threads that are currently running in the background inside an Android application?

Thank!!

+3
source share
2 answers

By default, the user interface runs on a single thread!

Map<Thread, StackTraceElement[]> myMap = Thread.getAllStackTraces();

This card also contains system threads running in this application, such as garbage collection.

+3
source

Android . , , GUI, " ".

Android .

-1

Source: https://habr.com/ru/post/1758471/


All Articles