Questions tagged [android-preferences]
1916 questions
0
votes
1 answer
android preference getString returning null value
I have an android preference screen with list preference of language selection as

mpsbhat
- 2,733
- 12
- 49
- 105
0
votes
0 answers
Android Editable ListView (preference / dialog)
I need a editable list view with strings where items can be renamed added and removed.
That should be - if possible in a preference view / dialog.
What is the best way to implement that?
Are there libs? - I didn't find any.
My current solution is a…

rala
- 895
- 2
- 18
- 43
0
votes
3 answers
How to hide the keyboard and update EditTextPreference programmatically?
I am trying to implement the settings activity according to the guidelines. I have an EditTextPreference that I want to keep, but instead of allowing the user to type in any value, the value should come through Bluetooth (i have the Bluetooth part…

Apostrofix
- 2,140
- 8
- 44
- 71
0
votes
1 answer
EditTextPreferences selectAllOnFocus not honored
Here is the :

dmfrey
- 1,230
- 1
- 17
- 33
0
votes
1 answer
How to get a Preference to display custom items
In my preferences.xml file I can display texts, checkboxes, and lists, but what if I want to display something that doesn't have a built-in category, like a Calendar or Time object?

The 29th Saltshaker
- 671
- 1
- 6
- 16
0
votes
1 answer
How to save preferences composed of 2 strings and display them?
I am currently creating an android application. This application should allow users to enter a RSS feed URL and save it as a preference. I know how to save basic preferences (Strings, booleans...) using a key/value attributes. My problem here is I…

Mtoypc
- 464
- 1
- 6
- 24
0
votes
0 answers
Android Preference persistString method is getting java.lang.ClassCastException error
I'm trying to do TimePickerPreferences and I tried accepted answer and second answer in the question. And I got following error when I call persistString(time) function at onDialogClosed
FATAL EXCEPTION: main
Process: com.foo.example, PID: 29414
…

melomg
- 737
- 3
- 20
- 39
0
votes
1 answer
How to remove Preference underlining
I am developing some app and I need to remove lines between Preferences, as shown on screenshot. Could you please help me to do that?
NOTE: I'm not going to change System Setting. This is just an example. The idea is to remove lines between…

Robert
- 35
- 8
0
votes
0 answers
Set an adapter to a v7.ListPreferences
I migrated to android.support.v7.preference and I have some problems with the ListPreference item.
I had that code :
public class CurrencyListPreferences extends ListPreference {
private List mCurrencyList;
private Context…

P. Sohm
- 2,842
- 2
- 44
- 77
0
votes
1 answer
Setting Ringtone from android preferences is not working
I am having an reminder application that will allow the user to set the required ringtone for notification from settings option which I implemnted using android preferences.
The ringtone dialog is displayed with the list and the ringtone I select is…

san9194
- 25
- 7
0
votes
0 answers
How to save application's preferences on server and load them
I need to load preferences from server and changes must be stored on same server. what I understood from this link is that if I use PreferenceActivity class it stores the preferences automatically in SharedPreferences.
What I need, to fetch…

Sarfraz Ahmed
- 1,349
- 6
- 23
- 43
0
votes
1 answer
onActivityResult() is called to early for Settings.ACTION_MANAGE_OVERLAY_PERMISSION
I want to request the Overlay permission for my app to draw on top of other apps. For this I use ACTION_MANAGE_OVERLAY_PERMISSION
Intent intent = new Intent(android.provider.Settings.ACTION_MANAGE_OVERLAY_PERMISSION, Uri.parse("package:" +…

mbonnin
- 6,893
- 3
- 39
- 55
0
votes
2 answers
Disable the line limit wrap when Code Format is selected
Recently I set my line length limit to 100 or 120 and I also enabled an option that will wrap the code that exceeded those limits to the next line, whenever I clicked Code Format.
Now I want to disable that wrap and do it manually, but I don't know…

Kaloyan Roussev
- 14,515
- 21
- 98
- 180
0
votes
0 answers
PreferenceManager cannot load default value of custom preference
I used code sample for TimePreference from link.
Related to my question methods:
@Override
protected Object onGetDefaultValue(TypedArray a, int index) {
Log.v(TAG, "a.getString(index): " + a.getString(index));
Log.v(TAG, "hasKey(): " +…

iramm
- 123
- 5
0
votes
2 answers
How to use custom CheckBox in PreferenceScreen on Android
I want use PreferenceScreen in my application for set some of settings. I've customized this page, and set layout for any preferences. all of preferences is OK, but CheckBoxPreferences, and when I click on it does not show any reaction, this is ture…

Dr.NoBody
- 1,585
- 3
- 12
- 13