Sunday, January 13, 2013

[android-developers] Correct way to implement Activity onDestroy()?

I would like to know whether I should null out all member variables, such as TextView and Button in onDestroy()? Or, unregistering listener, unbinding service and etc.in onDestroy() are enough to prevent memory leak?

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate