Start default music player with music playing by default
问题 I am developing an application where I need to start the default music app and play all the songs. I have tried a number of approaches, but nothing seems to work. Intent LaunchIntent = getPackageManager().getLaunchIntentForPackage( "com.android.music.MediaPlaybackActivityStarter"); startActivity( LaunchIntent ); and Intent intent = new Intent(); ComponentName comp = new ComponentName("com.android.music", "com.android.music.MediaPlaybackActivity"); intent.setComponent(comp); intent.setAction