For blackberry and iphone users
http://stealthguards.com/idevaffiliate/idevaffiliate.php?id=1475


On Sunday, May 29, 2011, Anirvan <anirvan.majum...@gmail.com> wrote:
> hello,
>
> for quite some time i was blissfully of the opinion that static
> [instance] variables exist as long as the app runs. however, to my
> dismay, and much alarm, i feel that it's not true.
>
> for mere testing, i created a static list of strings, and in my main
> activity class overrode the onDestroy method to print a message to
> verify that the app exited. in the onCreate method i simply added a
> new string, and printed the contents of the list. what i've found is
> that the size of the list keeps on increasing, and all the string
> values added previously are still present.
>
> is there some cardinal mistake in what i assumed should be the
> behaviour of instance variables, or is there something that i should
> keep in mind when dealing with instance variables?
>
> what gives?
>
> thanks for your time and help.
>
> --
> 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

Reply via email to