Hot answers tagged music-player
There's a Bluetooth connect & Play app that can intercept the incoming "play" command. While it was originally designed to let you start a specific music app playing when a specific Bluetooth device connects, you can instead select "STOP music from playing" to keep any app from starting when the car connects.
StackOverflow is the right place for this question. Emphasise that you're looking for a way to add this functionality to your own app. Also, looking at open source Android music players such as CM's Apollo might be a good place to start.
Only top voted, non community-wiki answers of a minimum length are eligible