RE: [android-developers] Re: List of all instantiated Activities

2010-06-03 Thread Ted Neward
om: android-developers@googlegroups.com [mailto:android-develop...@googlegroups.com] On Behalf Of Rajiv Sent: Thursday, June 03, 2010 4:05 AM To: android-developers@googlegroups.com Subject: Re: [android-developers] Re: List of all instantiated Activities You can implement this in your application b

Re: [android-developers] Re: List of all instantiated Activities

2010-06-03 Thread Rajiv
gt; Consulting, Teaching, Speaking, Writing > http://www.tedneward.com > > > -Original Message- > > From: android-developers@googlegroups.com [mailto:android- > > develop...@googlegroups.com] On Behalf Of Romain Guy > > Sent: Wednesday, June 02, 2010 1:26 AM > >

RE: [android-developers] Re: List of all instantiated Activities

2010-06-03 Thread Ted Neward
.com > -Original Message- > From: android-developers@googlegroups.com [mailto:android- > develop...@googlegroups.com] On Behalf Of Romain Guy > Sent: Wednesday, June 02, 2010 1:26 AM > To: android-developers@googlegroups.com > Subject: Re: [android-developers] Re: List of

Re: [android-developers] Re: List of all instantiated Activities

2010-06-02 Thread Romain Guy
Because it's implemented using finalize(). And in Froyo this will always return 0 btw. On Wed, Jun 2, 2010 at 2:25 AM, skink wrote: > > > On Jun 2, 7:16 am, Romain Guy wrote: >> getInstanceCount() is there for debugging purpose and is not reliable. >> >> > > why is it not reliable? > > pskink >

[android-developers] Re: List of all instantiated Activities

2010-06-02 Thread skink
On Jun 2, 7:16 am, Romain Guy wrote: > getInstanceCount() is there for debugging purpose and is not reliable. > > why is it not reliable? pskink -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to andro

Re: [android-developers] Re: List of all instantiated Activities

2010-06-02 Thread Romain Guy
getInstanceCount() is there for debugging purpose and is not reliable. On Wed, Jun 2, 2010 at 2:14 AM, skink wrote: > > > On Jun 2, 4:35 am, "Ted Neward" wrote: >> Anybody know an easy way for an app to find all the instances of all the >> Activities currently alive in the current process? >> >

[android-developers] Re: List of all instantiated Activities

2010-06-02 Thread skink
On Jun 2, 4:35 am, "Ted Neward" wrote: > Anybody know an easy way for an app to find all the instances of all the > Activities currently alive in the current process? > afaik, you can't do this you can however get total #Activities by calling Activity's static method getInstanceCount() pskink

Re: [android-developers] Re: List of all instantiated Activities

2010-06-02 Thread Romain Guy
Let's step back a little bit. Ted, what is it you are trying to do? On Wed, Jun 2, 2010 at 1:24 AM, Guillaume Perrot wrote: > I already made something similar (limited to the current activity) and > I did not find another way to access the activity instance. > To limit errors, I made my modificat

[android-developers] Re: List of all instantiated Activities

2010-06-02 Thread Guillaume Perrot
I already made something similar (limited to the current activity) and I did not find another way to access the activity instance. To limit errors, I made my modifications in life cycle callbacks and users have to inherit my Activity classes (I made a full set for convenience, there are 9 Activity