Sorry, but this is not possible.
Even if that were the case, consider how easy it is to abuse such features with malware . You can listen to intentions directed at you and those that are broadcast, but the launch of applications should not be a broadcast event.
What you can do is replace the launcher . If the user agrees to this.
You can also hack crawls by reading the logs of a magazine. For example, give your application permission android.permission.READ_LOGS
and analyze the logs to determine the application that launched it. This is just an idea, however ... it looks like something you would not want to rely on.
source share