Hi all,

First of all, this is not really a MfA question, more of an Android one,
and for that I apologize if this is inconvenient.

The problem is the following; I need to find a way to prevent users from
running apps that are not on a "whitelist", unless they can provide a
security code. To do that, I need to know when apps are launching and
prevent it by showing some other activity. And the this is, I'm running out
of ideas, so any out-of-the-box thoughts are welcome.

According to stackoverflow (thanks Jon), it is not possible to receive
broadcasts for MAIN/LAUNCHER actions. So that one is out. Too simple to be
true.
http://stackoverflow.com/questions/2953791/how-to-get-all-or-the-main-launcher-android-intent


Another suggestion was to have a service running on the background, always
querying for running tasks. When caught, if not on the "whitelist", start
an activity overlapping the previous one, intercepting the onBackPressed to
stop user from going back. Although not perfect, it could work. Though, the
fact that the service is always looping around and querying for running
tasks bothers me a little bit. There should be a better way.
http://stackoverflow.com/questions/5169279/automatically-prevent-apps-starting-from-the-launcher


The custom launcher option is so far the most clean, though, from Android
3.x, the settings are always at reach.

There's also the possibility to root the equipment and do a custom build
but... that's not really an option.


So... any other thoughts, please, are very welcome.

Cheers

-- 
Gonçalo Oliveira
_______________________________________________
Monodroid mailing list
[email protected]

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid

Reply via email to