Tôi có mã này cho màn hình Sở thích của tôi,RingtonePreference Giá trị mặc định
<RingtonePreference
android:key="notification_sound"
android:ringtoneType="notification"
android:title="Notification Sound"
android:showDefault="true"
android:showSilent="true" />
tôi muốn thiết lập giá trị mặc định cho RingtonePreference để Default Notification Sound
trong xml, làm thế nào có thể làm điều đó?
Cảm ơn
Tôi thấy điều này trên SO: [RingtonePreference DefaultValue] [1] [1]: http://stackoverflow.com/questions/4235018/can-i-insert-a-androiddefaultvalue-trait-for-ringt onepreference-via-xml – Joe