Android system music player


Last Updated:

  1. zhzhd82

    zhzhd82 New Member This Topic's Starter

    Joined:
    Apr 15, 2010
    Messages:
    2
    Likes Received:
    1
    Hi all:
    I use the following codes to call android system music player:
    Uri uri = Uri.parse(url);
    Intent intent = new Intent();
    intent.setDataAndType(uri, "audio/*");
    intent.setAction(Intent.ACTION_VIEW);
    startActivity(intent);
    It can play music. But if I press back key the music stops playing.
    How to call android system music player and play background?
    Thank you very much!
     

    Advertisement

Share This Page

Loading...