Questions tagged [preference]

445 questions
0
votes
1 answer

Using Android Preference classes UI for configuring dynamic data

For configuring a row of a database table, I'd like to use a UI identical to the Android Preference classes UI. For example, this would be setting a bunch of checkboxes / radios / etc to configure an alarm, in a table that held a number of…
pancake
  • 3,232
  • 3
  • 22
  • 35
0
votes
2 answers

How to locate the preference category in a preference screen in Android?

I implement a notification in the notification area, which can be clicked and go to the Sound Setting preference activity. There's several categories in this page, how can i scroll to a category or a preference item exactly I want? If I do noting…
0
votes
0 answers

How to make the volume control to control the notification volume?

I have an app has volume preference, I will use it to control notification volume. Below my layout code:
Dewa Yudie
  • 117
  • 1
  • 2
  • 13
0
votes
2 answers

Changing CheckBoxPreference value to false

I am currently doing an Android security application and I'm trying to uncheck a CheckboxPreference after certain conditions have been made. So I'm trying to uncheck the checkbox by doing this, by default the CheckBoxPreference is actually false so…
dythe
  • 840
  • 5
  • 21
  • 45
0
votes
1 answer

Launching Activity by using onPreferenceClick

I am trying to launch a activity from my preference screen, any help would be greatly appreciated. Here is some code i have been playing around with. Preference customerPref2 = (Preference) findPreference("community"); …
Jaison Brooks
  • 5,816
  • 7
  • 43
  • 79
0
votes
1 answer

Android XML Parsing & Preferences Error

Im parsing an xml file and i keep getting a nullpointer exception. I don't know here the null pointer is :( ListView.java static String URL = "https://dl.dropbox.com/u/####/wosm-library-EN.xml"; static final String KEY_ITEM = "item"; static…
SquiresSquire
  • 2,404
  • 4
  • 23
  • 39
0
votes
1 answer

Android: Hiding and Showing CheckBoxPreference

I have a PreferenceScreen with multiple PreferenceCategory that have many CheckBoxPreferences in them. I'm trying to create an expandable list concept by hiding or displaying a category on click of the preference category label. I can implement the…
0
votes
1 answer

Use the new value of edittext preferenceactivity in the main activity without close application

I want to use the new value of an edittext preference that is an ip, in the main activity. I don't have to show the value in the main activity. When I try that, I only get the default value until I close and open the app again. I only know how to…
0
votes
1 answer

How do you jump into Application Preference Setting Page with UIButton?

Does anyone know how to jump into application preference setting page without pressing home button? How do I do it with UIBUTTON and get into application preference?
-1
votes
1 answer

How do i save a bool value in shared preferences with flutter?

I have been trying to save a bool value "DarkMode" in shared preferences but can't seem to succeed. The darkmode variable is used to change the app to darkmode. It will also be greatly appreciated if someone could post a very simple example of…
Steve
  • 103
  • 1
  • 2
  • 8
-1
votes
1 answer

how can i use Tab and Preference?

my english is too bad.. so if my question is some strange.. understand me.. first current ui using a preference for setting. by the way menu depth is too deep.. so if user want to go first menu, he click the too many back button. so i am used…
carygun
  • 1
  • 1
-1
votes
1 answer

save json response in shared preference

{ "uau_id": 26, "u_id": 6, "au_id": 15, "element_id": 6, "date_created": "2018-06-01T09:38:39.974585Z", "users": 6, "device_id":…
-1
votes
1 answer

Which Preference class I should use to get this view

How can I get this result? Whether any of the standard Preference classes like: -DialogPreference -EditTextPreference -MultiSelectListPreference -SwitchPreference -TwoStatePreference will allow me to do this? Or I need to use additional…
-1
votes
1 answer

Android ListPreference how to change the size of the alert dialog

I can set the button, the icon of the alert dialog.But I don't know how to change the size of the alert dialog.
RealMo
  • 1
-1
votes
2 answers

Android Preference: CheckBoxPreference - Difference between defaultValue and checked

In CheckBoxPreference, what is the difference between "android:defaultValue" and "android:checked"? Both seems to be doing the same thing
1 2 3
29
30