Set a flag "iAmStartingMyNextActivity=true" before you call
startActivity and in onPause() check for the flag.

If you create a base MyAppActivity which extends Activity and you
extend all your activities from MyAppActivity, you should be able to
do this without puttting any code into every one of your activities.



On Jun 3, 4:24 pm, Dalvin <singh.dal...@gmail.com> wrote:
> Hi
>
> My question is can i get to know when the entire application gets
> paused/resumed start/stop etc.
> For example if i have 5 activities in my application. Whenever any activity
> gets paused/resumed android notify the activity by calling the
> onPause/onResume methods.
>
> So there are two possible scenarios when my activity gets paused.
> 1. My activity-2 gets paused because my activity-3 gets invoked.
> 2. My activity-2 gets paused because of some outside activity like incoming
> call.
>
> Here I am interested only tracking when my activity gets paused by outside
> activities not my own application activities.
>
> So is there any android provided solution for this or do I have to write my
> customized solution.
>
> Thanks
> Dalvin

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

Reply via email to