The Spotify for Android application does not support metadata over Bluetooth (to my car at least) so I was looking to build a helper application to detect when the metadata changed in the Spotify App and send it via A2DP / AVRCP.Just want to make sure my broadcast receiver is being registered correctly and that my AVRCP intent is setup correctly. Subset of my code below.@Overrideprotected void onCreate(Bundle savedInstanceState) {    super.onCreate(savedInstanceState);    setContentView(R.layout.activity_main);    IntentFilter iF = new IntentFilter();    iF.addAction(com.spotify.music.metadatachanged);    registerReceiver(mReceiver, iF);}private BroadcastReceiver mReceiver = new BroadcastReceiver() {    @Override    public void onReceive(Context context, Intent intent) {        Bundle bundle = intent.getExtras();        for (String key : bundle.keySet()) {            Object value = bundle.get(key);            Log.d(tag , String.format(%s %s (%s), key,                    value.toString(), value.getClass().getName()));        }        String action = intent.getAction();        String cmd = intent.getStringExtra(command);        Log.v(tag , action +  /  + cmd);        String id = intent.getStringExtra(id);        String artist = intent.getStringExtra(artist);        String album = intent.getStringExtra(album);        String track = intent.getStringExtra(track);        Log.v(tag, artist + : + album + : + track);        Toast.makeText(MainActivity.this, track +  |  + artist, Toast.LENGTH_LONG).show();        // Also SendMetadata        Intent avrcp = new Intent(com.android.music.metachanged);        avrcp.putExtra(id, id);        avrcp.putExtra(track, track);        avrcp.putExtra(artist, artist);        avrcp.putExtra(album, album);        sendBroadcast(avrcp);    }};
Getting Spotify Metadata and Sending it via Bluetooth
java;android;bluetooth