How to get a list of my app's tasks and the stack of their Activities? <p>In order to better understand the relationship between Activities, tasks, the back-stack for each task, and different launchModes I want to write an app with about 7 Activities, running in 3 tasks, where the Activities are launched in different launchModes, and as I'm running I want to display the stacks for each activity and watch them change as I navigate through my app and launch or close different Activities.</p> <p>How can I get a list of all the Tasks for my current application and then get the Activities on those tasks' stacks? The <a href="http://developer.android.com/reference/android/app/ActivityManager.html" rel="nofollow">ActivityManager class</a> lets me query task info based on what's recent or what's running but how do I query task info just for my current app?</p> <p>Thanks in advance.</p>