I am working on an Android app and one of things I'd like for it to be able to do is to send metadata via A2DP / AVRCP to my car radio and I cannot seem to get my car to pick up the metadata. I use PocketCasts as my podcast app and their app works with no issues.
My code below works on my Pebble, but it seems my car is expecting some extra fields before displaying the metadata on the radio. Wondering if there is any other way to send data except by using the Android Music Metachanged Intent -- seems a bit hacky.
public void sendMetadata() {
Intent avrcp = new Intent("com.android.music.metachanged");
avrcp.putExtra("id", 100);
avrcp.putExtra("track", "Test Track");
avrcp.putExtra("artist", "Test Artist");
avrcp.putExtra("album", "Test Album Name");
sendBroadcast(avrcp);
}