Answers for "play default message ringtone android studio"

0

play default message ringtone android studio

try {
    Uri notification = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);
    Ringtone r = RingtoneManager.getRingtone(getApplicationContext(), notification);
    r.play();
} catch (Exception e) {
    e.printStackTrace();
}
Posted by: Guest on August-20-2021

Code answers related to "play default message ringtone android studio"

Browse Popular Code Answers by Language