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. Write Android Books - Packt Publishing

Hi All,


I represent Packt Publishing, the publishers of computer related
books.

We are planning to expand our catalogue of OpenSource books and are
planning to publish some books on Android. Currently we are inviting
people interested in writing Android books to get in touch with us.
This doesn't require any past writing experience. All that we expect
from our authors is a good knowledge of their subject and an ability
to communicate clearly in English.

Some of the areas that we would find interesting include:

  Android game development

  Android application development

  Android TV widgets and applications

  Android best practices for application development

This list is definitely not exhaustive. If you have any other
interesting book ideas, we are keen to hear them.

So, if you love Android and fancy writing a book on any of the
suggested areas or on a topic of your interest, we would like to hear
from you. Write to us at aut...@packtpub.com with your book ideas and
we will be happy to discuss them. Incase, you don't have a book idea
and are simply interested in writing a book, send us some information
about your experience with Android.

More details about this opportunity are available at:

http://authors.packtpub.com/content/packt-invites-android-experts-write-new-set-books


Thanks

Kshipra Singh
Author Relationship Manager
Packt Publishing
www.PacktPub.com

-- 

2. OpenSource REST Client for Android

Hi All,
Is there any Opensource REST / RESTful Client / Library for Android ?
Please share me the links.
thanks
sampath

-- 

3. Eclipse library project problems

4. Droid Froyo manual update

5. Google Buzz

6. cannot find yesterdays post with 5 responses

7. Multiple project build on Android