The app may be put into background when you press the home button, but
the activity itself is always destroyed.  So onCreate will be called
every time it becomes visible.  If you want to preserve some content
in your app, then don't store that content as part of the activity
class.  Store it in a global.  Then in your onCreate you can check
that global to see if it is null.  Load it from the Internet only if
that global is null.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to