1

I'm working on a huge Android app using Eclipse that's got tons of code the I'm unfamiliar with.

There's a thread that's being spawned way too many times, and I'm not sure where it's being spawned as there's lots of code that spawns this thread.

How can I find where the thread was spawned in Eclipse?

Note: The thread does appear to have a name of sorts... In the thread Debug stacktrace, I can see "Thread [<18> *] where * is some dynamic info (not a simple string that's embedded in the app).

Brad Parks
  • 66,836
  • 64
  • 257
  • 336
  • 2
    There's no clear cut way to know where a thread came from. You can however try a few approaches :http://stackoverflow.com/questions/18999444/how-to-find-out-who-create-a-thread-in-java – Aneesh Sep 30 '13 at 12:14

1 Answers1

1

As @Aneesh said, this is answered here on StackOverflow. You asked about Android, but it's the same for Java pretty much:

how to find out who create a thread in java?

Community
  • 1
  • 1
TheWestIsThe...
  • 442
  • 4
  • 14