I need to change the SMS notification tone using code in android. Any help is appreciated...
Looks like you should use RingtoneManager class:
RingtoneManager.setActualDefaultRingtoneUri(
MainActivity.this,
RingtoneManager.TYPE_NOTIFICATION,
newUri
);
I lifted the code from here: StackOverflow post.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With