Friday, February 4, 2011

[android-developers] caching TelephonyManager and other managers

I user a bunch of managers in my app, like TelephonyManager,
ConnectivityManager, LocationManager and a few more. I initialise
these in my onCreate() of my service and use them later on.
I'm wondering if this is the correct approach. Should I be
initializing each manager as I need it, or is it ok to initialise them
once at the creation of my service for later use?
Thanks for your help.

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


Real Estate