[android-developers] Callback and context reference
Hi,
I have a broadcast receiver class for C2DM and I have to send the
push notification messages to different activities. I am using
callbacks based on interfaces in the same manner as given in this link
to different activities:
http://ranjanmalakar.blogspot.in/2011/02/writing-simple-callback-in-java.html
I am using a static class to store the context of various activities
but I am told that this would cause memory leaks as given in this link
(Actually we are experiencing memory leaks in our app):
http://android-developers.blogspot.in/2009/01/avoiding-memory-leaks.html
So what would be the best way to store the context references for use
in callbacks?
Thank you,
B.Arunkumar
--
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