Creating an application that shows up when an Android phone is docked

2.3k Views Asked by At

What category or action would I use to make my application show up when the phone gets placed in a dock?

2

There are 2 best solutions below

2
On BEST ANSWER

This will launch the app automatically when docked

<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" />
0
On

My guess is that you are looking to listen for an intent when the phone is put in a car dock such as is the case w/ the droid? I would take a look at this post.

Open App on Car Dock?