Android: Set SMS Notification Tone
I need to change the SMS notification to开发者_如何学Gone 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.
精彩评论