Questions tagged [edittextpreference]
120 questions
0
votes
1 answer
EditTextPreference not hide password on orientation change
In my android application I show the dialog in preference screen.Dialog will appear when user clicks on particular view.
I used EditTextPreference.
The code for EditTextPreference is as shown below:

void
- 479
- 2
- 13
- 27
0
votes
1 answer
PreferenceActivity - EditTextPreference - on value changed
I have an EditTextPreference (key "userfirstname"). I want to call method when it has been changed. I read documentation of PreferenceActivity and EditTextPreference, but I didn't find relevant solution.
Is there any way to do that ?

TN888
- 7,659
- 9
- 48
- 84
0
votes
1 answer
Text overflows on an EditTextPreference
Sorry if this is another basic question but I'm having a tough time trying to solve this...

Luso
- 125
- 2
- 9
0
votes
4 answers
When are preferences saved to file?
I have a EditTextPreference and I don't know when that string get saved to the Shared Preferences file.
If I start with a null string, and change it to "Hello", when does this update get saved? Do I have to save it manually?

kampytime
- 3
- 1
- 2
0
votes
1 answer
Storing user input from a EditTextPreference Box
How do we store a user input in the EditTextPreference Box using preferences and retrieve it to use later on.
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
…

user2511882
- 9,022
- 10
- 51
- 59
0
votes
1 answer
Prompt for EditText input, Save String, then never display again
So my objective with the below code is to simply launch this activity 1 time, to get a APIKEY, stored it, then launch the main activity that uses that APIKEY. This activity is just a EditText dialog, promting the user for the APIKEY, once entered…

Jaison Brooks
- 5,816
- 7
- 43
- 79
0
votes
1 answer
Keyboard cuts input field on small screen
I use standart EditTextPreference but on different Android versions it looks differently:
API 7
API 10
How can I achieve good view? Maybe resize keyboard or something else?

Konstantin.Efimenko
- 1,242
- 1
- 14
- 38
0
votes
1 answer
How can I enforce an exact string length in Android preferences?
I have a preference screen that, when a setting is enabled, has several strings that must be a particular length (# of characters). Also all of the strings are required. Ideally when the user has enabled this setting they should not be able to apply…

Travis Christian
- 2,412
- 2
- 24
- 41
0
votes
1 answer
Preventing edittextpreference from updating summary for inputtype password
I want to prevent user from viewing the password entered in edittextpreference in the preference summary.I have handled it logically to not update the summary as follows:
if (!preference.getKey().equals(EMAIL_PWD_KEY)
&&…

Adithya
- 2,923
- 5
- 33
- 47
0
votes
0 answers
Reset to Default Preferences not updating EditTextPreferences
I am trying to implement a RESET to Default option, part of my settings. What it does is it reverts back to the default value. My issues is when I reset everything how can I also update the EditTextPreference value with the newValue? It updates only…

Marquis
- 185
- 1
- 1
- 11
0
votes
0 answers
Android 4.2 extends EditTextPreference
I'm using this class to have an Encrypted EditText, it's working fine on Android < 4.2. On Android 4.2+ it's not working anymore, it's like if it's not saving the text anymore, but I'm not getting anything. Any ideas?
public class…

MoreOver
- 381
- 1
- 5
- 17
0
votes
0 answers
How to redisplay EditTestPreference when an invalid input was entered?
I am targeting android 2.1.
I have an EditTextPreference that allows users to input some values. If the user inputs an empty value I want to redisplay the edit preference after displaying an error message to the user.
I can display the error…

Tiago Veloso
- 8,513
- 17
- 64
- 85
0
votes
3 answers
How can I check an EditTextPreference value before the User validate it?
I have currently a Preference in my application where the user is prompted to enter between 2 and 10 numerical values.
As this feature is only available for power users and beta testers, not for public release, I decided to let them enter a CSV…

Waza_Be
- 39,407
- 49
- 186
- 260
-1
votes
1 answer
How to show and hide Android Edit Text Preference?
I just wish to know how can i show or hide edit text preference that i use to add username and password.
can i use such kind of feature here -to enable or disable a button in xml for edit text preference as well
ImageButton ready = (ImageButton)…

tomtom
- 345
- 2
- 15
-1
votes
1 answer
android - getDialog does not return an instance of AlertDialog
I've been working on google's course sunshine app and wanted to put my personal touch in it so i made the user specify his city by using a hybrid of EditTextPreference and AutoCompleteTextView shown in here:
public class…

Ahmed Mourad
- 193
- 1
- 2
- 18