what is the best practices to keep data between activities deathes/restarts for the whole application session?

by Arhimed » Sat, 09 Jan 2010 03:27:44 GMT


Sponsored Links
 We're designing an app that has several activities which are working
in a wizard like way - user should pass from the activity #1 to
activity #5 to get to the final activity (#6).

Since we know an activity can be suddenly terminated by OS on low
memory we used Application class as a static storage for keeping the
data the user inputs on "wizard" activities and other data our app
needs for the whole session.

Unfortunately we've discovered this approach fails - looks like the
Application class instance is also can be killed by OS (this was
specifically discovered on Android 1.6 versus 1.5). Are our
expectations wrong on this approach (we think Application class
instance always lives for the whole app session)?

So the question is - what is the best practices to keep data between
activities deathes/restarts for the whole application session?



Other Threads

1. want to send mail and get back result?

hi I made one application in which i m sending mail to user with an
attachment file.
for that i m using default mail application of android but the problem
is that i want to display  my message in dialog  box after sending
mail successfully.for that i have called dialog box after the end of
that mail activity but it displays in each cases mail is discard, save
to draft or mail is sent.

i only want to show that message box after successful sent event.

is it possible with default mail activity?

if yes then plz send me the solution?
thanks...

-- 

2. Scale control

Folks,

I just started with android development. Is there equivalent to scale
control in SDK (Sort of http://www.eclipse.org/swt/widgets/gallery-scale.png)?


Please advise.
Cheers,
Anton

-- 

3. Enabling code for earlier OS versions under the 2.1 SDK?

4. OnPause() - how to resume to an activity which has a Bundle passed to it when it is created

5. Problem of Installation ADP Plugininto Eclipse

6. textview and selectors

7. mpg123's Assembly Code With the NDK