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" />
i want set default value for RingtonePreference to Default Notification Sound
in xml, how can do it ?
Thanks
i found solution, thanks to Joe
, defaultValue Must be :
android:defaultValue="content://settings/system/notification_sound"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With