Wednesday, September 15, 2010

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

Have you tried adding "alwaysRetainTaskState" to your Activity
declaration?

http://developer.android.com/guide/topics/manifest/activity-element.html#always

"When this attribute is 'true', users will always return to the task
in its last state, regardless of how they get there."

On Sep 14, 11:40 pm, viktor <victor.scherb...@gmail.com> wrote:
> 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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment