1

Activities - Sharing data (singleton data class)

view story
linux-howto

http://stackoverflow.com – I'm building a new android app which uses data from a server through different activities. currently I have 2 activities, the main one connects to the server and creates the singleton object (which is shared for all activities) using the data from the server. obviously I have an instance of the data held in the singleton class, and get the object from a static method. I know that this is not the best way to implement a shared data between activities - I can pass them through intents (but I'm planning to create more 3-4 activities which uses the same data so why to pass them when you can hav (HowTos)