tags:

views:

72

answers:

1

I'm building an alternative Home application (a replacement of the standard launcher).

There's something I don't know how to make : how do you register your application so that it is called when the user click on the Home hard button ?

+3  A: 

It all depends on intent filter:

    <intent-filter>
        <action android:name="android.intent.action.MAIN" />
        <category android:name="android.intent.category.HOME"/>
        <category android:name="android.intent.category.DEFAULT" />
    </intent-filter>
alex
Ok ! I hadn't included DEFAULT. I guess that the combination of HOME and DEFAULT is needed.
dystroy
AFAIK, you can skip DEFAULT if it's the only category.
alex