On Feb 16, 7:30 am, Samuh <samuh.va...@gmail.com> wrote:
> Questions:
> What are other alternatives that we can try?
> How should such resources be bundled so that they can be addressed in
> code efficiently?


If you do find yourself making many calls, especially from the same
name multiple times, form your own Map<String,Integer> with each
value you look up.  Use the value if it's already in the map, or
ask Android to resolve the name and add it to the map.  This
technique is called "memo-izing" or memorizing the function.

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

Reply via email to