title: Activity has a method called getTaskId(). How do I know if this task id matches the task id of the Application task stack?
body: <p>I can get the app ID from my running activity via <code>activity.getTaskId()</code>. It will report back <code>185</code>. If I go to another app, and start my activity from a share button, it will be placed IN THAT apps stack. If I do <code>activity.getTaskId()</code> it will report back <code>192</code> for example. I am assuming that an application process can only have one main task stack associated with it. How do I get that tasks ID? I want to be able to know "Hey I'm running outside of your apps task stack". </p>
  
  <p>I contemplated doing this by polling the taskId the first time my activity is created and set that as a member variable to my Application Class, but if my app is killed, and then started first from another application, it will have the incorrect task id as the "AppTaskStackId". I haven't found any API for this. </p>