I want to display current selected value in my preferences screen in summary label.
For ListPreference, I used getEntry method in
public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) {
method, my class is:
public class AlarmPropertiesActivity extends PreferenceActivity implements OnSharedPreferenceChangeListener
For EditTextPreference, I used getText method
I try get default value for RingtonePreference, but I have not found any get method for that.
Anybody help me?
BR Kolesar
I have the same problem. Tried to go over the SharedPreferences value, but unfortunately the uri leads to an id like named file.
The path is something like this: content://media/internal/audio/media/25
So this is no suitable solution. But I noticed, that for example the GoogleTalk app doesn't show the selected notification sound as well. GoogleMail on the other hand shows it.