ActivityManager am = (ActivityManager)
getSystemService(Service.ACTIVITY_SERVICE);
List<ActivityManager.RunningAppProcessInfo> processes;
processes = am.getRunningAppProcesses();
for(ActivityManager.RunningAppProcessInfo info: processes) {
    Log.i("Process:", info.processName);
}


On Apr 11, 9:35 am, Julius Spencer <jul...@msa.co.nz> wrote:
> Hi,
>
> Just wondering, is it possible to look at an application's Activity stack?  
> I'd like to be able to look at the stack and see if the previous Activity on 
> the stack is the same as the one on the top.
>
> Regards,
> Julius.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to