Robin Royal Robin Royal - 1 year ago 62
Android Question

Android. What is the intent to start Google Play Music App?

I have used this code to start

Intent
of Google Play Music

Intent intent = new Intent("android.intent.action.MUSIC_PLAYER");
startActivity(intent);


but it show dialogue with two option Google Play Music and Built in Music Player.

Please help me in start Google Play music app from
Intent
.

Thanks

Answer Source

I solved this problem by this code.

    *Intent intent = context.getPackageManager().getLaunchIntentForPackage("com.google.android.music");
    startActivity(intent);*
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download