Questions tagged [preferences]

The java.util.prefs package provides a way for applications to store and retrieve user and system preference and configuration data.

1531 questions
20
votes
3 answers

Android: Viewing SharedPreferences file?

For debugging purposes I need to access the shared preferences file of my application. As far as I know I should find this file in /data/... but I can't access the /data folder through to missing permissions. Is this normal? Any way to still access…
stefan.at.kotlin
  • 15,347
  • 38
  • 147
  • 270
20
votes
4 answers

Xcode preferences across multiple computers?

I run Xcode on both my laptop and desktop. I'm constantly tweaking my setup with regards to key bindings. Rather than try to get both configurations identical by hand, is there any way to create the configuration on one computer and then share it…
Martytoof
  • 495
  • 5
  • 10
19
votes
4 answers

How to create RadioButton group in preference.xml window?

I'm beginner in Java Android developing. I'm using Eclipse SDK 3.6.1 version. I have a preferences window with two checkbox and one back button.
Juronis
  • 495
  • 4
  • 8
  • 18
19
votes
4 answers

How to set multiple default values in a MultiSelectListPreference?

I have preference.xml like this
wangyif2
  • 2,843
  • 2
  • 24
  • 29
18
votes
2 answers

Is there a way to use java.util.Preferences under Windows without it using the Registry as the backend?

I want to use the java.util.Preferences API but I don't want my program to attempt to read or write to the Windows registry. How would I go about this?
Epaga
  • 38,231
  • 58
  • 157
  • 245
18
votes
2 answers

View an Android App's shared preferences?

When I am working on my app in eclipse, is there a way to see the changes I make to the shared preferences of the app while it is debugging in the emulator? Thanks in advance
taormania
  • 661
  • 2
  • 9
  • 17
17
votes
6 answers

How to inject Spring Bean for factory method requiring MyClass.class parameter

I'm trying to inject a java.util.prefs.Preferences bean in to my master controller. The controller looks like: @Controller class MyController { @Autowired private Preferences preferences; } The application-context.xml file creates the bean…
Austin Haws
  • 364
  • 2
  • 6
  • 15
16
votes
2 answers

Howto hide a preference page in an eclipse RCP

I have an eclipse rcp and want to hide the security and help prerence pages. How can I do that?
Hannes Niederhausen
  • 1,579
  • 2
  • 11
  • 19
16
votes
6 answers

Remove unwanted blank line eclipse editor

When i open any file in eclipse. it show alternative blank line after all the code lines and blank line. how can i remove it....
Ankur Loriya
  • 3,276
  • 8
  • 31
  • 58
16
votes
3 answers

How to stop Visual Studio from auto formatting certain parts of code?

This seems like it should be really simple to do but I just can't figure it out. I want to allow Visual Studio to keep auto formatting my code as it is, except for this part: public SomeClass : BaseClass { public SomeClass() : base() …
Kredns
  • 36,461
  • 52
  • 152
  • 203
15
votes
2 answers

Mailto from preferences xml possible?

I am trying to build out the preferences for my application and I was hoping to do a "Contact the developer" area where when clicked, it would open an email directed to me. Is this possible to do from the xml file alone or do I need to do stuff in…
Rob
  • 1,162
  • 2
  • 18
  • 43
15
votes
2 answers

What is the difference between entries and entry values in android listPreferences xml?

Here is my code: How do they differ and which values get displayed on the dialog?
johnrao07
  • 6,690
  • 4
  • 32
  • 55
15
votes
2 answers

How to add a hyperlink into a Preference Screen (PreferenceActivity)

I would like to add three hyperlinks a Preference screen, which makes use of the PreferenceActivity if possible. Can I do this, if so, could someone provide support? Many thanks,
user2511675
  • 159
  • 2
  • 9
15
votes
4 answers

How to clear old preferences when updating Android app?

I have an app on the Google Play market. For various reasons that I won't bother going into, I have changed the type of some of my preferences. For example a preference type was an Integer and in the most recent version it is now a String. I…
Mel
  • 6,214
  • 10
  • 54
  • 71
15
votes
4 answers

How to remove projects from the Recent Projects list in the Start Page?

I started a new Enterprise Application project in Netbeans 7.1.1 and then later deleted the 3 projects ([project], [project]-war, [project]-ejb) from the projects window in the IDE, by right clicking them and selecting Delete, and also checking…
Nick Rolando
  • 25,879
  • 13
  • 79
  • 119