我正在尝试打开Android Auto上的Spotify并重现一首特定的歌曲。
使用下面的代码,我在手机上打开了Spotify,但我需要直接在汽车上打开它。
final Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("spotify:track:" + spotifyId));
intent.setPackage("com.spotify.music");
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
context.startActivity(intent);有人知道在Android Auto上打开Spotify的目的是什么吗?
https://stackoverflow.com/questions/47750372
复制相似问题