You can implement your own Application class. (MyApplication extends Application) and set it as your Application in the manifest.
<application 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 <[email protected]> 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 [email protected] > To unsubscribe from this group, send email to > [email protected] > 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

