[android-developers] What is a WeakReference?

2010-07-22 Thread GodsMoon
Google just posted a new blog post on
http://android-developers.blogspot.com/2010/07/multithreading-for-performance.html.
I understand the AsyncTask and I'm even using one in a list with
images already.

But I don't understand what a WeakReference is. I gather is is a
garbage collector directive, but I thought I didn't need to manage
garbage collection on Android.

http://developer.android.com/reference/java/lang/ref/WeakReference.html
isn't as helpful as I was hoping it would be.

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


Re: [android-developers] What is a WeakReference?

2010-07-22 Thread Satya Komatineni
Recently I had to do some research on the role of weak references
possibly for configuration changes and auto restart of activities. See
if the following material is useful

http://www.satyakomatineni.com/akc/display?url=DisplayNoteIMPURLreportId=3528ownerUserId=satya

The weak references are towards the end of the document

Satya Komatineni
http://www.satyakomatineni.com
http://www.androidbook.com


On Thu, Jul 22, 2010 at 1:48 PM, GodsMoon godsm...@gmail.com wrote:
 Google just posted a new blog post on
 http://android-developers.blogspot.com/2010/07/multithreading-for-performance.html.
 I understand the AsyncTask and I'm even using one in a list with
 images already.

 But I don't understand what a WeakReference is. I gather is is a
 garbage collector directive, but I thought I didn't need to manage
 garbage collection on Android.

 http://developer.android.com/reference/java/lang/ref/WeakReference.html
 isn't as helpful as I was hoping it would be.

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