Lifecycle questions not sure please help

by jimmythesaint » Thu, 16 Apr 2009 07:56:24 GMT

Sponsored Links

I am building my first app and I am not quite sure about the

I started with an object which holds the data. I pass this via Intents
to my activities and when they are done they pass it back ( if they
changed it ).  This seemed like a way of keeping data between
activities and is quite simple ( the object is serializable )

Now I am looking at the app lifecycle and I dont want to looe  data so
I am writing the object to a file on the onPause event of each
activity. Does this make sense ; writing data on each onPause  since i
dont know when the app could exit and be destroyed ?  Seems lke i may
as well not bother passing it throgh intents and just read it from
file on each activity start  ??



Other Threads

1. Audio uplink in active circuit switched call


I want to play an announcement on uplink in Active Circuit Switched
Call. Details on Media API says that this can be done over a data
connection; however my requirement is for a voice connection.

This functionality is available on symbian S60 platform. When could we
expect API for this functionality on Android if not already available?

Media API Link:


2. check network availability

hey everyone,
i couldnt find anything about a possibility to check if the cellular
network is currently available so that it is possible to start a
network operation.
is there any way to check this ?



3. Open a database from another application.

4. Application layout - Android

5. App for growing auto market

6. Why no support for existing phones?

7. Much To Do About Nothing - News on Google Branded Phone