Yes.

Threads are alive as long as they run and are not at all associated with an 
Activity's (or any other object's) life-cycle.

This is also one of the main reason why it is dangerous to create 
sub-classes of Thread that are (anonymous) non-static inner classes, where 
the outer class is an Activity (or any other object whose life-cycle is 
externally maintained), since instances of these Threads hold implicit 
references to the outer Activity instance --> Activity leak.



On Friday, November 30, 2012 4:10:57 PM UTC-5, bob wrote:
>
> If you create a Thread in an activity, does it generally live beyond a 
> call to onPause?
>
>
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to