简体   繁体   中英

How to get “all” (or the MAIN/LAUNCHER) android intent

i want receive all start app intents (i think MAIN/LAUNCHER, see below) to log how often i used the application. So i do not want create an activity... I tried several receiver blocks, but for now nothing works:

with, without priority, only the action, both, only the category and so on..

<receiver android:name=".Receiver" android:enabled="true"
    android:process=".e">
    <intent-filter priority="100000" android:priority="100000">
        <action android:name="android.intent.action.MAIN" />
        <category android:name="android.intent.category.LAUNCHER" />

    </intent-filter>
</receiver>

Have anyone an idea?

Thanks

I want receive all start app intents

You cannot do that, sorry.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM