I have a class which calls activity.getResources() in many places.
So I defined a private variable 
*private int Resources res;*

in onCreate() I defined the value:* res = activity.getResurces()*
 and then used *res* in the all the places.

is this best practice to do or call activity.getResources() in all the 
places.

-- 
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/d/optout.

Reply via email to