Re: [android-developers] Re: How to detect application launch and shutdown events?

2013-08-23 Thread Randall Mitchell
http://developer.android.com/reference/android/app/Application.html#onTerminate()
 
... reads:

"This method is for use in emulated process environments. It will never be 
called on a production Android device, where processes are removed by 
simply killing them; no user code (including this callback) is executed 
when doing so."

On Saturday, May 22, 2010 4:33:29 AM UTC-5, Martin Wallgren wrote:
>
> You can implement your own Application class. (MyApplication extends 
> Application) and set it as your Application in the manifest. 
>
>android:name="MyApplication" 
>   . 
>   . 
>   . 
>
> In MyApplication you implement onCreate and onTerminate. 
>
> See the docs for Application 
> http://developer.android.com/intl/fr/reference/android/app/Application.html 
>
> /Martin 
>
>
> On May 22, 10:44 am, Narendar  wrote: 
> > Hi all, 
> > How to detect application launch and shutdown events? 
> > 
> > I have used BroadcastReceiver for detecting incoming message, outgoing 
> > call and so on. but now I want to use Application Launch and its Shut 
> > Down event from my application.. 
> > 
> > Kindly waiting for any suggestion/link/source code 
> > 
> > Regards, 
> > Narendar 
> > Software Engineer 
> > 
> > -- 
> > You received this message because you are subscribed to the Google 
> > Groups "Android Developers" group. 
> > To post to this group, send email to 
> > android-d...@googlegroups.com 
> > To unsubscribe from this group, send email to 
> > android-developers+unsubscr...@googlegroups.com  
> > For more options, visit this group athttp://
> groups.google.com/group/android-developers?hl=en 
>
> -- 
> You received this message because you are subscribed to the Google 
> Groups "Android Developers" group. 
> To post to this group, send email to 
> android-d...@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

-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[android-developers] Re: How to detect application launch and shutdown events?

2010-05-22 Thread Narendar
Hi Martin, Thanks for quick reply...
Let me describe what I actually want to develop

1) Suppose I have a single Activity, name is "MyActivity".
2) Now I close this Activity and I am in Home Screen.
3) Now suppose I want to start any other application like Broswer,
Gmail, Gtalk, Map and whatever "MyActivity" would be invoked before
starting one of the mentioned activity.

If issue is not clear please let me know.
Waiting for response..
Narendar


On May 22, 2:33 pm, Marwal  wrote:
> You can implement your own Application class. (MyApplication extends
> Application) and set it as your Application in the manifest.
>
>    android:name="MyApplication"
>   .
>   .
>   .
>
> In MyApplication you implement onCreate and onTerminate.
>
> See the docs for 
> Applicationhttp://developer.android.com/intl/fr/reference/android/app/Applicatio...
>
> /Martin
>
> On May 22, 10:44 am, Narendar  wrote:
>
>
>
> > Hi all,
> > How to detect application launch and shutdown events?
>
> > I have used BroadcastReceiver for detecting incoming message, outgoing
> > call and so on. but now I want to use Application Launch and its Shut
> > Down event from my application..
>
> > Kindly waiting for any suggestion/link/source code
>
> > Regards,
> > Narendar
> > Software Engineer
>
> > --
> > 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 
> > athttp://groups.google.com/group/android-developers?hl=en
>
> --
> 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 
> athttp://groups.google.com/group/android-developers?hl=en

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


[android-developers] Re: How to detect application launch and shutdown events?

2010-05-22 Thread Marwal
You can implement your own Application class. (MyApplication extends
Application) and set it as your Application in the manifest.

http://developer.android.com/intl/fr/reference/android/app/Application.html

/Martin


On May 22, 10:44 am, Narendar  wrote:
> Hi all,
> How to detect application launch and shutdown events?
>
> I have used BroadcastReceiver for detecting incoming message, outgoing
> call and so on. but now I want to use Application Launch and its Shut
> Down event from my application..
>
> Kindly waiting for any suggestion/link/source code
>
> Regards,
> Narendar
> Software Engineer
>
> --
> 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 
> athttp://groups.google.com/group/android-developers?hl=en

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