安卓:设置短信通知音 [英] Android: Set SMS Notification Tone

查看:219
本文介绍了安卓:设置短信通知音的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要使用code在Android的改变短信通知音。任何帮助是AP preciated ...

I need to change the SMS notification tone using code in android. Any help is appreciated...

推荐答案

看起来你应该使用RingtoneManager类:

Looks like you should use RingtoneManager class:

RingtoneManager.setActualDefaultRingtoneUri(
  MainActivity.this,
  RingtoneManager.TYPE_NOTIFICATION,
  newUri
);

我解除了code从这里开始:<一href="http://stackoverflow.com/questions/3029876/setting-ringtone-notification-from-sd-card-file">StackOverflow帖子。

这篇关于安卓:设置短信通知音的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆