27.03.2011 19:27, TreKing пишет:
Do you have something more concrete? :-)

I was already being quite specific.

Any Singleton, manager, or utility class can take Context as a parameter for the functions it needs it for, making it clear to the user of the API that a Context is needed for that functionality

Sure, that's another way. I prefer to not do this, but coding style is a personal thing.

However, there are cases where a true global context is required, and passing a local Context as a parameter causes a leak.

--
Kostya Vasilyev -- http://kmansoft.wordpress.com

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