Re: [android-developers] Re: Count of activities in App's stack

2011-01-18 Thread Richard Leggett
You might try along the lines of using: android.permission.GET_TASKS In your manifest and then code similar to: http://davanum.wordpress.com/2007/12/18/android-task-manager-primitive-prototype/ But I would strongly recommend you don't ask for that permission and instead do what Kumar

[android-developers] Re: Count of activities in App's stack

2011-01-18 Thread MrChaz
This might be a good place to look: http://developer.android.com/reference/android/app/ActivityManager.html -- 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

[android-developers] Re: Count of activities in App's stack

2011-01-17 Thread Hari Edo
If you make a new class MyActivity extending Activity, then you make all of your activites extend MyActivity instead, then you can implement whatever instance tracking you'd like to do. But Java (and thus Dalvik) have no way to reflect and iterate all object instances of a class, extended class,