> Hekki wrote: > > Since i'm in an anonymous class and I've read that it's not a good > > idea to pass the whole context to classes > > Where did you read that? I sure hope that I did not write that...
Thanks for your answer. Since I'm not sure I fully understand that Context leak thing, I just try to avoid it alltogether : http://www.curious-creature.org/2008/12/18/avoid-memory-leaks-on-android/ Sorry to say but I don't think I ever read a line of yours. Mea Culpa :D But to the point : I'm trying to make my code as reusable as possible so the class is not an inner class, just an anonymous outer class if you will. It seems like a huge thing to pass the whole context just to have access to the connectivity manager and do such a simple task. Isn't there something like class.parent.getContext or simply a way to get access to those crucial components without having a context ? Regards -- 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

