有没有办法从我的应用程序发送一个歌曲标题到spotify应用程序,以便它将通过spotify开始播放歌曲?
我尝试使用我在另一个代码中找到的波纹管代码,但没有任何反应.
Intent intent = new Intent(Intent.ACTION_MAIN);
intent.setAction(MediaStore.INTENT_ACTION_MEDIA_PLAY_FROM_SEARCH);
intent.setComponent(new ComponentName("com.spotify.mobile.android.ui", "com.spotify.mobile.android.ui.Launcher"));
intent.putExtra(SearchManager.QUERY, "michael jackson smooth criminal");
Run Code Online (Sandbox Code Playgroud)
我知道shazam能够做到这一点.
android ×1