📅  最后修改于: 2022-03-11 14:52:15.750000             🧑  作者: Mango
private void playMp3(String nameOfFile){
MediaPlayer mPlayer = MediaPlayer.create(this, getResources().getIdentifier(nameOfFile, "raw", getPackageName()));
mPlayer.start();
}