播放Android的默认音效
答
我只是粘贴从接受的答案是在代码 - StackOverflow question to play Android Notification sound
try {
Uri notification = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);
Ringtone r = RingtoneManager.getRingtone(getApplicationContext(), notification);
r.play();
} catch (Exception e) {
e.printStackTrace();
}
我将如何发挥NFC的声音效果? –