[android-developers] Re: Application state when Home pressed
You should not assume that your parent activity exists when your child
activity is being displayed. Try what I wrote above and see what
happens.
It is permissible (although very unlikely that) your parent activity
is killed (by the OS) while you are using your child activity.
On Aug 13, 11:04 am, viktor <victor.scherb...@gmail.com> wrote:
> On 12 Сер, 20:26, Frank Weiss <fewe...@gmail.com> wrote:
>
> > There are two levels of foreground/background, onPause/onResume and
> > onStart/onStop. Please read the Activity documentation. Then explain
> > what you issue is.
>
> OK, I write more clear my issue.
>
> I have parent activity, other activities extends that.
>
> I want to know when app goes to foreground and after that update some
> information in parent Activity.
>
> If I catch this state with onResume() it is OK for (HW_HOME button),
> but if I goes back from child onResume() is appear again.
>
> I fully read the Activity documentation, life cycle is good when you
> are using single Activity.
>
> Any other ideas?
--
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
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home