I found the answer, courtesy of an alldroid.org thread.

Here's the <intent-filter> you need:

<intent-filter>
        <action android:name="android.intent.action.MAIN" />
        <category android:name="android.intent.category.LAUNCHER" />
        <category android:name="android.intent.category.CAR_DOCK" />
        <category android:name="android.intent.category.DEFAULT" />
</intent-filter>

Then, you get the activity chooser, with the "Use by default for this
action" checkbox.

Here's the full thread in case you're interested:

http://alldroid.org/threads/13897-That-Stupid-Car-Dock-App.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Android 2.x Programming Books: http://commonsware.com/books

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to