android播放音乐

 MediaPlayer mPlayer = MediaPlayer.create(context, R.raw.windows_8_notify); // in 2nd param u have to pass your desire ringtone
 //mPlayer.prepare();
 mPlayer.start();

你可能感兴趣的:(Android)