I have an Android application that uses 1 navigation drawer activity with several Fragments. The activity fetches JSONObjects from a REST API and converts them to ArrayLists of custom objects.
These custom ArrayLists are used throughout several fragments, some of them being modified and some of them only used for display. My app currently has these ArrayLists as static objects and imports them into the necessary Fragments, but I'm aware that this is probably not the best way to approach this.
Should I keep using static ArrayLists or should I pass the ArrayLists in bundles when I create the fragments? Of course, any better suggestion would be greatly appreciated as well.