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 suggested, perhaps increment/decrement a static AtomicInteger if you only care about Activities within your own Application. Richard On 17 Jan 2011, at 21:11, Hari Edo wrote: > > 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, or interface implementors. > > I don't think the android stack is exposed for inspection either. > > On Jan 17, 3:54 pm, Sudhakar Chavali <sudhakar.koundi...@gmail.com> > wrote: >> Hello All >> >> Is there a way to know the count of activities exists in Application >> stack? >> >> Thanks & Regards >> Sudhakar Chavali > > -- > 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 -- 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