[android-developers] Child activity lifetime in background

2010-09-15 Thread viktor
Hi,

I have next problem, I have got parent activity and few sub-
activities, if app goes to the background by pressed HOME button for
long time, all children will be killed, and my app restart from parent
activity.

For example: A1 - parent, A2,A3,A4 - sub-activities. A1--A2--
A3(top), from A3 I go to the background (HOME). wait 30-40 min and
restart app.

Only A1 displayed.


Could you please explain how to resolve my problem?

Thanks

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


Re: [android-developers] Child activity lifetime in background

2010-09-15 Thread TreKing
On Wed, Sep 15, 2010 at 1:40 AM, viktor victor.scherb...@gmail.com wrote:

 I have next problem, I have got parent activity and few sub- activities, if
 app goes to the background by pressed HOME button for long time, all
 children will be killed, and my app restart from parent activity.


Right. That's how it works.


 Could you please explain how to resolve my problem?


Don't wait 30 - 40 minutes to reuse your app?
If you haven't used an app this long, it's reasonable to expect it to be
killed and started from scratch next time you open it. Why is this a
problem?

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

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