On Wed, Nov 3, 2010 at 5:34 PM, Dominique Holzwarth
<dominique.holzwa...@gmail.com> wrote:
> I have a very basic question regarding the lifetime of an instance
> when it comes to the activity lifecycle changes.
>
> Lets assume I have an activity that owns an instance of a (custom)
> view class. This view instance has an instance x of another class X
> (this class stores some application business data). What happens with
> this instance x if onStop / onDestroy for the activity are called?

Nothing happens in onStop(). Sometime after onDestroy(), all your
objects (including x) will be garbage collected.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Training in Atlanta: http://bignerdranch.com/classes/android

-- 
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