No, and I doubt there ever will be. I don't understand at all the whole thing about reading the system logs -- when your app is dead, it is dead, so it isn't there to read the system log. When it starts later in the future, whatever information was printed in the log may have rolled out at that point... and anyway it is not restarting so it -knows- it was killed. What is the point?
On Sat, Jan 3, 2009 at 8:37 AM, focuser <[email protected]> wrote: > > 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" <[email protected]> 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 app will surely break in > the > > future. > > > > > > > > On Fri, Jan 2, 2009 at 2:20 PM, focuser <[email protected]> wrote: > > > > > 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 because the ActivityManager write a line into the log when this > > > happens. > > > > > On Jan 2, 11:29 am, "Dianne Hackborn" <[email protected]> wrote: > > > > No, sorry. > > > > > > On Fri, Jan 2, 2009 at 8:26 AM, focuser <[email protected]> wrote: > > > > > > > anyone please? > > > > > > > On Jan 1, 10:26 am, focuser <[email protected]> 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 <[email protected]> wrote: > > > > > > > > > Hi, > > > > > > > > > Is there a way to programmatically receive notification > onDestroy, > > > > > > > onStop, and onPause etc in other applications on the phone? > > > > > > > > > I see there's a READ_LOGS permission and guess this might be > > > achieved > > > > > > > by reading the system log. But I couldn't find anything to > access > > > the > > > > > > > system logs. > > > > > > > > > Thanks and Happy New Year! > > > > > > -- > > > > Dianne Hackborn > > > > Android framework engineer > > > > [email protected] > > > > > > Note: please don't send private questions to me, as I don't have time > to > > > > provide private support. All such questions should be posted on > public > > > > forums, where I and others can see and answer them. > > > > -- > > Dianne Hackborn > > Android framework engineer > > [email protected] > > > > Note: please don't send private questions to me, as I don't have time to > > provide private support. All such questions should be posted on public > > forums, where I and others can see and answer them. > > > -- Dianne Hackborn Android framework engineer [email protected] Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

