Questions tagged [preference]
445 questions
0
votes
1 answer
Create custom DialogPreference programmatically
How can I create the dialog preference in code ?
MyDialog dialog=new MyDialog(getActivity() );
dialog.setTitle("asd");
dialog.setKey("key");
dialog.getDialog().show();
This is in my xml file, and it works fine when…

Lukap
- 31,523
- 64
- 157
- 244
0
votes
2 answers
NullPointerException while Preferences deleting which were added dynamically
I need to add Preferences dynamically to my PreferenceActivity and I do it like this:
mFilterShow = (PreferenceScreen)getPreferenceScreen().findPreference("orderScreen");
public void assignmentFieldsAdd()
{
CheckBoxPreference cb1 = new…

Rikki Tikki Tavi
- 3,089
- 5
- 43
- 81
0
votes
1 answer
Individual preference for each listview item example
What's the easiest way to create separate preferences for each item in an Android listview? I found this question, but it's kind of general. Could anyone be more specific, possibly show a quick example?

HighLife
- 4,218
- 7
- 40
- 56
0
votes
2 answers
Selenium Grid 2 - Remote webdriver not setting the user agent preference in FireFox
I am using selenium server 2.28 on windows machine. I have set up the hub and node. I am using .net to write my test cases. I am using the following code to use custom FireFox (17.0.1) Profile with the user agent changed(to…

S.S
- 3
- 2
0
votes
2 answers
Error with detecting res/xml and preference activity
I am trying to add a Preference activity in my andorid App, but my eclipse is not recognizing the res/xml folder and addPreferenceFromResources() method is showing as deprecated. So Please help how I can proceed further further. BTW I am reading the…
0
votes
2 answers
NumberFormatException with IntEditTextPreference
In my android application, I'm using a class called 'IntEditTextPreference'. This class is used when I want a user to introduce a preference as an integer.
But it has a problem. When the user leaves the field empty and press "ok", an…

Eduardo
- 1,169
- 5
- 21
- 56
0
votes
1 answer
How to update ListPreferences after implementing OnChangeListener
I have PrefActivity and I use OnChange Listener to make a toast when ever user change any button in list preferences.
But now I have 2 problems:
1-first time that user change an option toast is not shown
2-after that, when ever user change…

Reza_Rg
- 3,345
- 7
- 32
- 48
0
votes
1 answer
Scrolling a preference changes everything to white
I have a preference screen like this:

yasserbn
- 391
- 3
- 18
0
votes
1 answer
When setting a Preference in my Service, I have to restart the app the get the new value
I am currently storing the last update time of my service in a Prefence:
SimpleDateFormat sdf = new SimpleDateFormat("dd/MM HH:mm:ss");
String now = sdf.format(new Date());
Editor edit = PreferenceManager
…

Waza_Be
- 39,407
- 49
- 186
- 260
0
votes
1 answer
Mono For Android, FindViewById A CheckBoxPreference?
I have a PreferenceScreen, where the user can check/uncheck a checkbox.
To get access any Control in the Activity I used always:
var button = FindViewById

eMi
- 5,540
- 10
- 60
- 109
0
votes
3 answers
How to get most recent sharedPreferences
I have a background service that reads cpu usage and frequency and displays it on notification bar
In application settings(Preferences) i have a option to chose to display only frequency only load or both
But method for getting shared preferences…

pedja
- 3,285
- 5
- 36
- 48
0
votes
1 answer
What is the difference between Circular Dependency and Circular Reference or the difference between Dependency and Reference?
As stated in the question, Could any one tell me about the difference between Circular Dependency and Circular Reference or the difference between Dependency and Reference?
I feel quite unclear and can't answer my friend's question when he asked me…

Toby D
- 1,465
- 1
- 19
- 31
0
votes
1 answer
SetOnPreferenceClickListener Issue
a busy cat http://dl.dropbox.com/u/36109322/Custom.JPG
Hi all,
Does anyone know how to solve this issue ? It is a proper coding but why it shows this error? Thank you in advance.

Dummy1234
- 177
- 1
- 4
- 12
0
votes
1 answer
Cannot get the preferences from preferencesactivity
MainActivity
@Override public void onCreate() {
super.onCreate();
SharedPreferences settings = PreferenceManager.getDefaultSharedPreferences(this);
boolean checked = settings.getBoolean("test", false);
…

LK Yeung
- 3,462
- 5
- 26
- 39
0
votes
1 answer
Live wallpaper with list preference
I am trying to develop a live wallpaper which displays live scorecards using the android.service.wallpaper.WallpaperService.
I planning to have a list preference for the wallpaper, which will the give the user an option to choose the match that he…

Karthick R
- 599
- 9
- 25