Instead of selecting a default music player, would it be possible to have the Garmin Connect app control the media?
For example:
Current behavior:
Default music player is set to Pandora.
Music is playing from Google Play Music.
Hitting Pause/Play button on vivosmart starts music playback on Pandora.
Feature request: Instead of defaulting to a specified app, check if media is currently playing. If it is, do not use default music player.
This could be achieved by:
Forwarding the events from the vivosmart as KeyEvents.
More specifically, if the pause/play button is hit on the vivosmart, then in the app:
am = (AudioManager) getBaseContext().getSystemService(Context.AUDIO_SERVICE);
event = new KeyEvent(eventtime, eventtime, KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_MEDIA_PLAY_PAUSE, 0);
am.dispatchMediaKeyEvent(event);
event = new KeyEvent(eventtime, eventtime, KeyEvent.ACTION_UP, KeyEvent.KEYCODE_MEDIA_PLAY_PAUSE, 0);
am.dispatchMediaKeyEvent(event);
This would allow for the device to control whichever media player is active. Then, if there was no media player active, it could fall back to a default media player.