开发者

Android: Set SMS Notification Tone

开发者 https://www.devze.com 2023-01-28 02:03 出处:网络
I need to change the SMS notification to开发者_如何学Gone using code in android. Any help is appreciated...Looks like you should use RingtoneManager class:

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消