> My problem is that monitoring the log the way I'm doing it is not a
> reliable way of detecting whether an app is running in the foreground.
> It certainly detects the 1st instance of the app being launched and
> its initial activity. However, the scenario I described in my original
> post cannot be detected by the "Starting activity" pattern. However,
> it clearly can be accomplished by some other means since other app
> protector apps that I've tried don't have the same problem. I'm trying
> to find out how it is they solve this problem.

What I'm telling you is that if the system is designed correctly you
should not be able to write such an app.  I suppose that this is
alleviated by the fact that you can simply uninstall the app...

> I'm aware that users can uninstall the app. Thank you.

Well you're certainly welcome!  If this is to be used as a security
feature, it seems all your friend has to do is uninstall the 'app
protector' app...

There are other system logs that probably reveal what you'd need: the
window manager logs, for example..

Kris

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

Reply via email to