[Programming] How to Play/Resume music of another music player from my app?

hi fellow programmers,

In my android app I want to play or resume the played music after a paused it. I got my app to pause the music by sending a broadcast, but I can't get it to play or resume the music.

here is the code to pause

    Intent i = new Intent("com.android.music.musicservicecommand");
            i.putExtra("command", "pause");

how can it be done?