views:

18

answers:

1

Is it possible to listen for entries to the log? Ie is there a broadcast intent for when a log entry is appended?

A: 

If by "the log" you mean LogCat, no, there are no broadcast Intents for appending entries to LogCat.

CommonsWare
Thanks for the replies. I'm trying to get to the bottom of solving an earlier requirement whilst making an app.I'd like an app that detects when other apps are started. In its simplest form each time any app is started, my app displays a view or message. I want to extend this, but for the time being, just to get it working can you think of a way of doing this?I was going to try and detect if the log was written to, then look at what was written and look for a "main" intent. I know what i'm after can be done, just not sure howwhere would you start if this were your task? cheers
Ian
@Ian: "I'd like an app that detects when other apps are started." -- as far as I am concerned, this is a privacy violation.
CommonsWare
I can see how it would be, but there are a few App Lock apps out there that show a password screen when other apps are started.Search for App Lock or App Protector in the market. I want to develop something similar with a few more features but have drawn a blank as to how they've achieved this fundamental part!
Ian
@Ian, Check out `ActivityWatcher`...It wont tell you when an App is started, but it's close enough.
st0le