Is there a way to find the running timer in java?… here is a solution to the problem.
Is there a way to find the running timer in java?
Is there a way to find out how many timers are running in Java? ActivityManager similar to activities in Android?
I noticed that a timer can be created with a given name. How do I reference a timer by name?
public Timer (String name, boolean isDaemon) Added in API level 1
Creates a new named Timer which may be specified to be run as a daemon
thread. Throws NullPointerException if name == null
Solution
If you run this code, you will see all the activity threads
for (Thread t : Thread.getAllStackTraces().keySet()) {
System.out.println(t.getName());
}
The one with the name Timer-x is Timers