铃声preference默认值 [英] RingtonePreference Default value
本文介绍了铃声preference默认值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有这个$ C $下我的preference屏幕,
I have this code for my Preference screen,
<RingtonePreference
android:key="notification_sound"
android:ringtoneType="notification"
android:title="Notification Sound"
android:showDefault="true"
android:showSilent="true" />
我要为铃声preference设为默认值的XML 默认通知声音
,该怎么办呢?
感谢
推荐答案
我找到的解决方案,这要归功于乔
,设置defaultValue必须是:
i found solution, thanks to Joe
, defaultValue Must be :
android:defaultValue="content://settings/system/notification_sound"
这篇关于铃声preference默认值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文