How can I make a variable or object available to multiple activities or restarts of the same one.
A:
This page outlines the tools Android provides for storing data:
http://developer.android.com/guide/topics/data/data-storage.html
Most likely you will want to use SharedPreferences
:
http://developer.android.com/reference/android/content/SharedPreferences.html
Computerish
2010-10-12 01:42:54
I think I should clarify. How can I share an InputStream across multiple activities or preserve it across restarts of the current one.
Mitchell
2010-10-12 01:57:16
In case anyone was wondering, I found the answer here: http://stackoverflow.com/questions/3910398/thread-in-java-android
Mitchell
2010-10-14 02:33:59