I have a case in my Android application in which I need to perform a long ruing task. At the end of that task I will use that info. I have multiple activities that need to access that info and I do not need to recalculate it each time.
The simple answer is create a 'static' class that can store the info. If the info is not yet there, it can start an AsyncTask to get the info. If the info has already been obtained/calculated it can just give back the info.
However I am wondering if a service is a better patte/idea in this case. Can I use a service in Android, have that service obtain the data and allow other activities to ask that service for the data?
