Hi,

i've read the articles about activity lifecycle, subclassing the
application and so on; but i don't know where to put my application
data. I could write/load files in OnPause / OnResume, but that seems
not a good solution since a new sub-activity (e.g. details of a
specific item) would force a save too.

Currently i'm holding my data in a subclass of application (and wanted
to save it in OnDestroy, but there is no guarantee that OnDestroy is
called).

So; where do i put all the big data which is needed by several
activities within the same application?

Should i create a service?

Thanks

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" 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-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to