I'm working on an application that requires non-serializable objects
to be passed between Activities.  The following page suggests using a
HashMap of WeakReferences to accomplish this:

http://developer.android.com/guide/appendix/faq/framework.html

Is this solution safe?  I know Activities are completely destroyed and
recreated when the screen orientation changes.  Couldn't those weakly
referenced objects get GCed in the split second when the screen is
rotated, since they wouldn't be referenced elsewhere at that point?

Thanks,
Mark

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