get list of activity of current package which was not finished
<p>I have one confusion I want to get list of all activity which was not finished previously</p>

<p>My code is</p>

<pre><code>ActivityManager am = (ActivityManager) this.getSystemService(ACTIVITY_SERVICE);
            List&lt;ActivityManager.RunningTaskInfo&gt; taskInfo = am.getRunningTasks(Integer.MAX_VALUE);
            for (RunningTaskInfo runningTaskInfo : taskInfo) {

                ComponentName comName=runningTaskInfo.baseActivity;
                String Packname = comName.getPackageName();
                String Classname = comName.getClassName();
                RunningServiceInfo s;
                Logger.debug("component name:"+comName+" packname:"+Packname+" class name:"+Classname);

            }
</code></pre>

<p>so this  code gives me only base activity name of stack where as </p>

<pre><code>List&lt;ActivityManager.RunningTaskInfo&gt; taskInfo = am.getRunningTasks(Integer.MAX_VALUE);
            for (RunningTaskInfo runningTaskInfo : taskInfo) {

                ComponentName comName=runningTaskInfo.topActivity;
                String Packname = comName.getPackageName();
                String Classname = comName.getClassName();
                RunningServiceInfo s;
                Logger.debug("component name:"+comName+" packname:"+Packname+" class name:"+Classname);

            }
</code></pre>

<p>gives me top activity name..
but I want to get all activity name which was not finished so how to get those activity name??</p>
