Is it possible to track on Android from where somebody has started an application (i.e. from the drawer, from recent apps menu, or from desktop shortcuts, etc.)?
Is it possible to track on Android from where somebody has started an application
Share
Sorry, but this isn’t possible.
Even if it was, consider how easily such functionality could be abused by malicious software. You can listen to intents directed at you, and those that are broadcast, but application launching should not be a broadcast event.
What you may be able to do is replace the launcher. If the user agrees to it.
You might also be able to hack a work-around by reading the logcat logs. For instance, give your application the
android.permission.READ_LOGSpermission and parse the logs to determine the application that launched it. This is just an idea, however… it sounds like something you wouldn’t want to rely on.