[android-developers] Re: activity.getResoures()

2014-07-14 Thread Streets Of Boston
If 'res' is a local variable or a member/field of your activity, it's fine to use 'res' all over your method/activity. However, don't make res static/global (if you do and fail to set it to null at the appropriate time, you may set yourself up for memory leaks. Don't give it to other instances o

[android-developers] Re: activity.getResoures()

2014-07-15 Thread sweety fx
Thank you On Monday, July 14, 2014 6:34:44 PM UTC-4, Streets Of Boston wrote: > > If 'res' is a local variable or a member/field of your activity, it's fine > to use 'res' all over your method/activity. > > However, don't make res static/global (if you do and fail to set it to > null at the