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

Posted by Christoph Jerolimov on Stack Overflow See other posts from Stack Overflow or by Christoph Jerolimov
Published on 2010-06-01T22:19:50Z Indexed on 2010/06/01 22:23 UTC
Read the original article Hit count: 462

Hey,

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

© Stack Overflow or respective owner

Related posts about android

Related posts about intent