tags:

views:

71

answers:

1

Is it possibe to have your app start automatically when the device is placed in the car doc? Like Google Maps, I know it utilizes the magnet in the dock. Where do I look in the API to accomplish this?

Thanks

Patrick

+1  A: 

http://developer.android.com/reference/android/content/Intent.html

Look for CATEGORY_CAR_DOCK

eduffy
So all I have to do is add this Category to the activity in the manfest file?
You need an entry something like this:<intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.CAR_DOCK" /> <category android:name="android.intent.category.DEFAULT" /></intent-filter>
hackbod
Gah sorry about the formatting getting screwed up.
hackbod