android 播放音乐
private MediaPlayer mMediaPlayer; //定义
public void playTone() {
//mMediaPlayer.create(getApplicationContext(), uri)
mMediaPlayer.stop(); mMediaPlayer.reset(); mMediaPlayer.release(); mMediaPlayer = null; Uri playUri = Uri.parse("/sdcard/music/"+list.get(focusedIndex).cType+".mp3"); try { mMediaPlayer = MediaPlayer.create(CheckItemsActivity.this, playUri); } catch (IllegalArgumentException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (SecurityException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (IllegalStateException e) { // TODO Auto-generated catch block e.printStackTrace(); } mMediaPlayer.start();}