On Fri, Mar 15, 2013 at 5:50 AM, user123 <ivanschu...@gmail.com> wrote:
> And the possibility that someone can do bad things with the singletons, like
> storing views or other things which can lead to memory leaks is not a reason
> to stop using them. You can do this with any class.
>

Let's take a minute to dissect what you said:

"You can do this with any class"
This sounds a lot like:
"You shouldn't wear a life vest while swimming, you can drown while
wearing them."

To me, the fact that you are much more likely to accidentally miss
explicitly deallocating a static reference sounds like a pretty good
reason.

Kris

-- 
-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to