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
11
votes
2 answers

iOS 5: Can I have my app "In Notification Center" by default?

I have an iPad app in the App Store whose logic relies largely on local notifications. In other words, much that happens inside the app is triggered by the delegate method application didReceiveLocalNotification. With today's release of iOS 5, I see…
Gregir
  • 1,574
  • 5
  • 21
  • 43
11
votes
2 answers

what's the best django profile / user settings application around?

I'm looking for a good django app that brings to me basic features like user profile editing password changing save settings / preferences specific to my app save authentication keys to external apps (twitter, rtm, facebook, ...) I know how to…
memyself
  • 11,907
  • 14
  • 61
  • 102
11
votes
6 answers

Delphi: Handling user's font preference

I've come up with the call that gets the user's UI font preference (as opposed to Borland's hard-coded choice of "MS Sans Serif"). Let's pretend the user's font preference is: Segoe Print, 15pt I set the font of all items, on all forms, in all…
Ian Boyd
  • 246,734
  • 253
  • 869
  • 1,219
11
votes
1 answer

about config preferences and js

I wonder if it is possible to get values of certain preferences set in about:config using javascript? Incentive is to get value of preferences set in firefox addon i've created when user lands on addon front end. Basically, I'm trying to identify…
Bojan Babic
  • 605
  • 5
  • 19
11
votes
5 answers

Android ADT Plugin doesn't show up in Eclipse

I'm using Windows 7 and installed the 64 bit version of Eclipse 3.5.2. I then installed the Android ADT plugin, but when I try to configure it in the Windows > Preferences dialog, the Android Plugin doesn't show up in the left pane. Instead I see…
Casey MacDonald
  • 111
  • 1
  • 1
  • 4
11
votes
7 answers

Java String initialization

Which do you prefer and why" String myString = null; if(someCondition) myString = "something"; else myString = "something else"; OR String myString = ""; if(someCondition) myString = "something"; else myString = "something else"; I…
11
votes
3 answers

How do I fix a "Prefs file removed in background /home/steven/.java/.userPrefs/prefs.xml" error?

I've been programming on Windows for the majority of my program with no problems with preferences. I just booted up Ubuntu 12.04 and loaded up my classes into Eclipse. At run time, I receive this in the console: Oct 12, 2012 8:14:38 PM…
Frizinator
  • 1,351
  • 3
  • 12
  • 16
11
votes
4 answers

Add buttons to PreferenceFragment

I want to add a couple buttons to the bottom of my preferences screen for setting defaults and restoring defaults. This answer doesn't cover how to do this using PreferenceFragment. What is the recommended way to accomplish this. Activity that loads…
Namaste
  • 265
  • 1
  • 4
  • 11
11
votes
3 answers

Aptana Studio 3 - text font size minimizing with Ctrl + -

hello I have recently installed aptana studio 3 again and I am having where my text font size minimizes when I do the command (Ctrl + -). I am talking about the font under General->Appearance->Colors and Fonts->Basic->Text Font. This command works…
Deadpool
  • 111
  • 1
  • 4
10
votes
3 answers

How can I concatenate static strings with XML string resources?

I'm trying to combine a static "hard coded" string with one referenced from strings.xml for string array items. The goal is to have a dynamic metrics list where the number is the same for all languages, but the metrics text value may change by…
Tõnis Pool
  • 185
  • 1
  • 3
  • 8
10
votes
1 answer

Alternative to Preferences in Java

I'm using the Java Preferences API to store and retrieve small pieces of information in a swing/java application. Now i have setup Java Web start to launch the application from my web page, and I get a security exception. In order to get rid of this…
Joel
  • 3,427
  • 5
  • 38
  • 60
10
votes
2 answers

Eclipse: OSGI Preferences vs. PreferenceStore

I'm working on an Eclipse plugin (or in fact, a plugin for an Eclipse-based application) which needs some configuration to be entered by the user. From looking at the documentation, there seem to be two preference APIs - one in…
Paŭlo Ebermann
  • 73,284
  • 20
  • 146
  • 210
10
votes
1 answer

Using a theme for preferences screen

I want the change the look of the preferences screen for an app I am working on. On some phones the preferences are very translucent and it is quite difficult to read the preferences scheme, so I am going to change the visuals for it. My question…
jbww
  • 735
  • 2
  • 12
  • 27
10
votes
4 answers

Android: launch a custom Preference from a PreferenceActivity

I would like to be able launch a 2nd Preference screen from my PreferenceActivity. And in the 2nd Preference screen I'd like to use a predefined layout from xml. So, I have two questions: How do I use an xml layout as the layout view of a…
ab11
  • 19,770
  • 42
  • 120
  • 207
10
votes
1 answer

Shared Preferences reset when the app is force closed or crashes

I have noticed that my app's SharedPreferences are completely reset if the app is force closed or is killed by the system for some reason. Obviously, yes, I should avoid having a crash in the first place but it does happen. If it does happen, the…
cottonBallPaws
  • 21,220
  • 37
  • 123
  • 171