Nevermind guys, that works fine, I had a typo in my manifest file, the way I posted it above works fine.
You can either use DESK_DOCK or CAR_DOCK intents and the phone will ask which action you would like to do, and if you would like to set it to default. On Nov 8, 2:23 am, Daniel <velaz...@gmail.com> wrote: > Hi, I'm trying to "override" the action when connecting the Droid to > the multimedia dock, and I'm not being lucky with this. > I'm not being asked to "select the default action", the only way for > me to launch an app when detecting a dock connection is by using the > android.intent.action.DOCK_EVENT and using a broadcastReceiver, then > launching the app from there, obviously not good, did it that way just > for testing purposes. > > Here's my manifest, I'm using the intent-filter this way. > > <application …….> > <activity…………..> > MAIN ACTIVITY.......................... > ……………………………………………….. > > <intent-filter> > <action android:name="android.intent.action.MAIN" /> > <category android:name="android.intent.category.DESK_DOCK" /> > <category android:name="android.intent.category.DEFAULT" /> > </intent-filter> > > </activity> > </application> > > Thanks in advance, -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en