title: How to debug multiple threads in Android?
body: <p>I'm trying to fix an issue in an unfamiliar piece of code/architecture where i have only a vague sense of what is going on.</p>
  
  <p>I've basically been sticking print statements everywhere i see, going from when the app is backgrounded to <code>onResume()</code>. some time between <code>onResume()</code> and i actually see a list view updated properly on my device, something is happening to cause a 2 second delay. i can't seem to find it because none of the code in <code>onResume()</code> seems to make mods to the listview.</p>
  
  <p>there's a suspicion that the 2 second delay issue is stemming from the fact that i'm re-opening the app from the Notification as opposed to just regularly. problem is, there are multiple threads in notification and i don't really understand what any of it is doing.</p>
  
  <p>What are some ways to go about approaching this problem in terms of "debugging" this? like... does Android Studio have a way to show ALL threads that are in my app at any given point in time? and if so, is this something i can and understand/gather useful information from? </p>