解决:铃声改变,来短信,短信设置中默认铃声的名称没有同步更新
2014-06-12 21:09
351 查看
短信界面没有关闭的情况下,在设置中进行操作,短信设置界面中不会进行刷新。因此在当MessagingPreferenceActivity处于活动(onResume)的时候重新初始化,添加代码如下:
protected void onResume() {
super.onResume();
loadPrefs();
// Since the enabled notifications pref can be changed outside of this activity,
// we have to reload it whenever we resume.
setEnabledNotificationsPref();
// Initialize the sms signature
updateSignatureStatus();
registerListeners();
boolean airplaneModeOn = isAirplaneModeOn();
// Caused by the ICC card state maybe changed outside of this activity,
// we need to update the state of the SMSC preference.
updateSMSCPref(ALL_SUB, airplaneModeOn);
}
protected void onResume() {
super.onResume();
loadPrefs();
// Since the enabled notifications pref can be changed outside of this activity,
// we have to reload it whenever we resume.
setEnabledNotificationsPref();
// Initialize the sms signature
updateSignatureStatus();
registerListeners();
boolean airplaneModeOn = isAirplaneModeOn();
// Caused by the ICC card state maybe changed outside of this activity,
// we need to update the state of the SMSC preference.
updateSMSCPref(ALL_SUB, airplaneModeOn);
}
相关文章推荐
- 解决:铃声改变,来短信,短信设置中默认铃声的名称没有同步更新
- tera term 乱码解决以及改变默认设置
- 安装windows/ubuntu双系统时间不同步问题解决及设置默认启动系统
- 小米手机因为默认权限设置电话拨号,短信等广播无法使用的解决办法
- 解决Google Chrome设置默认浏览器后, 没有注册类的提示
- SVN 的使用:用两次就会了,很简单.注意总结【①做完自己代码,首先右键项目>team >“与资源库同步”,把队友的代码更新下来(而不是直接提交),②整合完设置"冲突已解决",才能提交】===
- 解决MyEclipse中修改了JSP文件,在浏览器端没有同步更新的问题
- [GitHub]GitHub for windows 设置代理解决 “超时及更新同步异常”
- mt6735 默认alarm铃声在media database中的id改变后,如何将新的id更新到settings.db去?
- 今天解决了价位没有同步更新的问题
- 黑莓刷机及情景设置来电和短信等没有声音的解决办法
- 将SD卡的音频设置为手机铃声后删除,手机铃声没有恢复到默认的问题
- Windows Server 2003中的IIS 6.0默认设置是特别严格和安全的,最大只能传送 204800个字节,我们需要修改,以允许从IE中上传更大的附件。解决办法是
- 注意我写的OTA短信同步设置的代码有很多问题
- 安装配置管理 之 在Fedora Core 中,有些常用命令怎么没有?解决办法设置PATH
- 在连接到SQL Server2005时,在默认的设置下SQL Server不允许进行远程连接可能会导致此失败--的解决
- 解决windows2000中无法设置默认输入法的问题
- "服务器没有设置事务处理"错误的解决方法
- 设置了“在桌面上为图标标签使用阴影“却没有效果,如何解决。
- 注意我写的OTA短信同步设置的代码有很多问题