ok. Is it best to retrieve as needed during service execution and remove reference or obtain on service create and maintain as reference? if so should it be static reference member variable?
On Jan 31, 8:14 pm, Dianne Hackborn <hack...@android.com> wrote: > Generally it should be a member variable because these are retrieved and > associated with the Service's context. > > On Mon, Jan 31, 2011 at 8:06 PM, AndroidDevTime > <androiddevd...@gmail.com>wrote: > > > Is it a good practice for a Service to maintain static reference to > > System Manager? like Activity Manager, Power Manager? etc? > > > -- > > 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<android-developers%2bunsubscr...@googlegroups.com> > > For more options, visit this group at > >http://groups.google.com/group/android-developers?hl=en > > -- > Dianne Hackborn > Android framework engineer > hack...@android.com > > Note: please don't send private questions to me, as I don't have time to > provide private support, and so won't reply to such e-mails. All such > questions should be posted on public forums, where I and others can see and > answer them. -- 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