Questions tagged [dialog-preference]

A class in the Android preferences framework that allows applications to implement custom user interfaces for editing a preference setting.

A class in the Android preferences framework that allows applications to implement custom user interfaces for editing a preference setting.

A very useful guide for writing DialogPreference implementations can be found in this answer: Concise way of writing new DialogPreference classes?

67 questions
0
votes
2 answers

onclick event in dialog preference

I have a custom dialog preference that have bunch of button.each button represent a number.something like clock application when you want to set alarm. how can I get onClick of each button in my dialog preference? this is part of my dialog layout…
Saber Solooki
  • 1,182
  • 1
  • 15
  • 34
0
votes
1 answer

How to set Alarm t Start Service in DialogPreference

I am using a Custom DialogPreference but I want to start a service when user sets the time.. i.e start a alarmmanager to work.. But when I type my code in onTimeSet() method it does not allow to add alarm service there. public class Timer extends…
Raman
  • 13
  • 2
0
votes
1 answer

How to return to main activity from onDialogClosed method in DialogPreference class

I have defined custom preference class that extends Dialogpreference class for the settings activity, public class YesNoPreference extends DialogPreference { private boolean mWasPositiveResult; DashboardActivity dashboardActivity; Context…
Mamta
  • 13
  • 1
  • 4
0
votes
1 answer

Context menu in Android DialogPreference... is it possible?

I'm trying to create a context menu in a DialogPreference for an Android app (targeting API level 8, in case it's relevant). I've managed to get the menu to show (when an item in a ListView is clicked) via a slight hack, but I have no idea how to…
Jules
  • 14,841
  • 9
  • 83
  • 130
0
votes
1 answer

preferences are not saving on usingcompound EditTextPreferences

I have followed this tutorial for using compound dialogpreference All stuff is working well only the issue is preferences are not saving for the app. May be the system is not saving the preferences by default so is there any way to save them. I have…
0
votes
1 answer

Saving float from seekbar using dialogue preference

I'm using a custom dialog preference to generate a seekbar in my preferences menu. After researching seekbar implementation, to obtain the float value I need from the seekbar I have written the following code: public void onProgressChanged(SeekBar…
0
votes
2 answers

NumberPickerPreference - Default value is not loaded

I would like to use a NumberPicker preference. Basically the code is working as expected. A dialog opens with a NumberPicker. The value can be selected and is saved to the defaulSharedPreferences. But on the first time the PreferenceActivity is…
KarlKarlsom
  • 5,868
  • 4
  • 29
  • 36
1 2 3 4
5