Questions tagged [preference]
445 questions
0
votes
1 answer
Android save selected Currency in SharedPreference
in my Activity, the user chooses whether to display the currency Canadian or Chinese. I would like to save this choice, I think the best way is to save it in a SharedPreferences. How can I do?
NumberFormat nf =…

Debora Carnevali
- 18
- 9
- 19
0
votes
1 answer
Preference Bundle Toggle issue on iOS 7
So, I'm at my wits end...
I'm a novice w/ little experience making iOS jailbreak tweaks. I'm hoping my question will help others trying to figure out the same thing.
I have a simple tweak that has a Preference Bundle. Everything is setup except my…

thazsar
- 25
- 7
0
votes
1 answer
Portlet preferences scope in a Liferay configuration page
I develop a Liferay portlet which has preferences unique per layout: preferences are specific to each portlet window, and users can modify them through "Preferences" option (Edit mode).
In…

Dominique
- 4,272
- 1
- 16
- 21
0
votes
1 answer
How to use preference headers in a library?
I'm able to create preferences for my apps that are sharing code through a library by passing the preferences' XML resource IDs (say R.xml.settings1 in App1 and R.xml.settings2 in App2) to the PreferenceActivity in the lib through the bundle putInt…

user3441546
- 11
- 2
0
votes
1 answer
Android : Dialog in Preferences.xml [Need Help]
In my preference Activity, i'm using an alert dialog, but i get error on OnSharedPreferenceChangeListener, am i doing wrong somewhere? Please help me out, Thanks!
public class MainSettings extends PreferenceActivity implements //getting error…

Emm Jay
- 360
- 2
- 20
0
votes
2 answers
Android Preferences: XML Object reference
I'm working on developing a Preference screen in Android's base Settings application. To be brief, I'm finding it difficult to access the View objects of the Preferences themselves: I'm looking to set the value of a Switch based on some file…

indy
- 3
- 2
0
votes
1 answer
Pass value to activity started from intent in preferences?
I have a number of Colors that can be set by the user in preferences. For that I have an Activity with a ColorPicker. The problem is don't know how to pass the key of the color being changed to the ColorPicker so it can save it in…

lisovaccaro
- 32,502
- 98
- 258
- 410
0
votes
0 answers
Android locale support from Preferences
I have a problem with my android app: I'm supporting multiple languages, but when I change the locale settings of the phone (Settings -> Language & input), my settings fragment shows only empty preferences on the screen. If I turn back to the…

giob12
- 83
- 4
- 7
0
votes
1 answer
Android Setting ChangeListener to Preference
I am trying to open a dialog when a preference is clicked. The result. It does nothing.
Here is the Preference Activity
public class SettingsPrefActivity extends PreferenceActivity {
...
Preference.OnPreferenceChangeListener…

Peter Sun
- 1,675
- 4
- 27
- 50
0
votes
0 answers
Is there a way to listen for a specific preference change (outside a PreferenceActivity)
Wondering what the suggested way to 'listen' for a specific preference change outside of a PreferenceActivity. I have a PreferenceActivity that deals with all my sharedpreferences, but I also have a MapActivity that deals with map stuff. How do I…

lostintranslation
- 23,756
- 50
- 159
- 262
0
votes
0 answers
Is there a way to change the UI behavior of Eclipse Preference Page?
I am developing an plug-in, I want to change the UI of the Eclipse Preference page, for example, I want to change the color of "General" to red. May I ask that is it possible? If so, could you give me some hints of how to do it? Thanks very much.

chygo
- 366
- 2
- 6
- 16
0
votes
1 answer
preference extension package to jar
http://www.eclipse.org/articles/article.php?file=Article-Preferences/article.html did somebody see this paper? and I executed the example, it is run as eclipse application successfully, however when I packaged it to jar and pushed the jar package…

Stellar
- 7
- 2
0
votes
1 answer
Android Dynamically Creating Preferences, how to commit?
I am creating an app where the user is asked to store contacts from the contact list. I am dynamically creating a preference object for each contact (using the title for the name and the summary for the phone number) and adding them to a preference…

Peter Sun
- 1,675
- 4
- 27
- 50
0
votes
1 answer
Add icon to preference in older version
After Android 3.0 we can add icon to preference using preference.setIcon(icon). how can i add icons to preference to support older versions than Android 3.0?
thank you.

Kelum Deshapriya
- 258
- 4
- 14
0
votes
1 answer
Storing integers in preference class
In my android app I have created a preference class(which extends PreferenceActivity) for storing about 10 integer values. I am not creating any xml file for that activity in R.xml as I don't want it. I just need to store 10 integer variables in…

Info Seeker
- 107
- 4
- 9