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. backgroundservice

i want to develop an application which checks periodically for new
data on a server over a http-connection.
Should i do this in a Thread or is it better to do this in a service?
The checking should also continue when the user is going back to the
Android-Main-Menu, that means the user is exiting the Activity, and
when he starts the Activity again it can work with the collected data.
As far as i read, is this feature only possible with remote-Services,
so that i must use Inter-Process-Communication?

With kind regards,


2. Error Publishing Upgrade of an Application


I'm a french student working on an android game called : MemoGame.

I've successfully published my first version on the android market
using my keystore
But now i have a problem when i want to upgrade my application, here
the error :

The apk must be signed with at least one certificate in common with
the previous version.

But i'm using the exact same keystore.

What should i do ?

Thank you and have a nice day.

3. Minor in Android Developer Challenge

4. OMAP3 U-Boot problem

5. How to make WebView do a Vertical Scroll ?

6. what is the fast way to save/load string from/in an array?

7. Patching synthesized voice in ongoing call