[android-developers] Re: Receive notification for onDestroy, onStop, and onPause etc in other applications?

2009-01-03 Thread Dianne Hackborn
Please don't write an app that depends on parsing stuff out of the logs. This is not a defined part of the SDK, and your app will surely break in the future. On Fri, Jan 2, 2009 at 2:20 PM, focuser linto...@gmail.com wrote: Thanks Alistair and Dianne, Now I understand that a notification is

[android-developers] Re: Receive notification for onDestroy, onStop, and onPause etc in other applications?

2009-01-03 Thread focuser
oh thanks Dianne, Does that mean there's no defined ways so far to determine whether an app is killed or not? On Jan 3, 1:31 am, Dianne Hackborn hack...@android.com wrote: Please don't write an app that depends on parsing stuff out of the logs. This is not a defined part of the SDK, and your

[android-developers] Re: Receive notification for onDestroy, onStop, and onPause etc in other applications?

2009-01-02 Thread focuser
anyone please? On Jan 1, 10:26 am, focuser linto...@gmail.com wrote: Just to clarify: by this I meant to receive notification when onDestroy, onStop etc in other applications are called, i.e. somehow monitor the life cycle of apps running on the phone. On Dec 31 2008, 5:01 pm, focuser

[android-developers] Re: Receive notification for onDestroy, onStop, and onPause etc in other applications?

2009-01-02 Thread Alistair.
Maybe your best best is to have a root around the Activity source code http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=core/java/android/app/Activity.java;h=eafb0488490fd144fa6fac15cbd303dfd93eb894;hb=HEAD Having said that the base activity doesn't seem to be signalling

[android-developers] Re: Receive notification for onDestroy, onStop, and onPause etc in other applications?

2009-01-02 Thread Dianne Hackborn
No, sorry. On Fri, Jan 2, 2009 at 8:26 AM, focuser linto...@gmail.com wrote: anyone please? On Jan 1, 10:26 am, focuser linto...@gmail.com wrote: Just to clarify: by this I meant to receive notification when onDestroy, onStop etc in other applications are called, i.e. somehow monitor

[android-developers] Re: Receive notification for onDestroy, onStop, and onPause etc in other applications?

2009-01-02 Thread focuser
Thanks Alistair and Dianne, Now I understand that a notification is not possible, But how does an app with READ_LOGS permission access system log? I couldn't find any documentation about this either. I'm guessing if one could read the log, the app could pretty much know when an app is killed

[android-developers] Re: Receive notification for onDestroy, onStop, and onPause etc in other applications?

2009-01-01 Thread focuser
Just to clarify: by this I meant to receive notification when onDestroy, onStop etc in other applications are called, i.e. somehow monitor the life cycle of apps running on the phone. On Dec 31 2008, 5:01 pm, focuser linto...@gmail.com wrote: Hi, Is there a way to programmatically receive