Assign a list/collection/set of states to a static (global) variable of a java class that appropriately deals with these. You could assign this static variable at start-up or just assign and load the list lazily (i.e. when the list is first needed).
public class State { private static List<State> states = new ArrayList<State>(); public static List<State> getStates() { if (states.isEmpty()) { getAllStates(states); // some method filling the array-list states. } return states; } ... ... } -- 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