title: How to get any activity from stack activities of application
body: <p>I have an application with activities A,B,C,D,E. Activity A starts from launcher, B from A, C from B, D from C and E from D. like A -> B -> C -> D -> E.
  Now at activity E, i want to do:</p>
  
  <p>for(int i=0; i &lt; listActivity; i++)
            if(activity[i] eligible)
                show activity.</p>
  
  <p>How to browse through the list activity running  and how get any activity from stack to front? 
  Hope you understand me and support me for this issue.
  Thanks everyone has read.</p>