FAQ Database Discussion Community


What encoding does the Oracle jvm use for preference node names on Windows?

java,encoding,preferences
I happened to create a system preference node name in a Java app running on Windows that consisted of some Chinese characters and then took a look at the registry to verify, and found that the jvm was using some text-based encoding for the node name that I didn't recognise...

Does VS-2013 main window get saved?

visual-studio-2013,ide,save,preferences
Every time I launch Visual Studio 2013, the main window pops up with the default width, height, and position on my screen. This forces me to resize and move it the the way I want every time. Did I miss an option somewhere to make the window retain its settings...

How to change colors of Gui-elements belonging to preferences?

android,styles,preferences
I have a PreferenceFragment, which displays several kinds of Preferences. Is it possible to change that blue color of the switch which belongs to a SwitchPreference and the radio buttons, line and title of the dialog which belongs to the ListPreference by assigning own colors to style-attributes ? My base...

How do I access general eclipse preferences in my own plugin

java,eclipse,plugins,eclipse-plugin,preferences
I want to get value of general console properties in my plugin. How can I do that? I think I should do something like this: IPreferenceStore store = ScriptUIActivator.getDefault().getPreferenceStore(); store.getDefaultInt(preferenceName); But what is "preferenseName"? And which one preference store do I have to use. http://i.stack.imgur.com/IqSuE.jpg...

Android ListPreference

android,preferences
I am implementing run time language changing for a game. Saving data in preferences. Everything works fine except one thing: In preferences I specify languages in ListPreference. if I change language - it is excellent changed everywhere in the app, but if I try to change language again, in ListPreference...

In Sublime Text, how can I increase the difference/contrast of the line highlight color from active file and other open, inactive files?

sublimetext3,preferences
OSX / Sublime Text 3 In Sublime, I work on several files at a time and have them set up in panes with 2 or more files visible at once. I have my <key>highlight_line</key> turned on and configured to be red (high visibility) in my current color scheme. Among the...

Can't get screen to show settings options

java,android,android-studio,sharedpreferences,preferences
EDIT Added MyActivity.java (i.e., main activity) at bottom EDIT2 Added lines to MyActivity.java (this solved the problem) I have preferences set up but have no way to access them. No matter what style I pick in xml and no matter what virtual device or style I pick in Android Studio...

Preference Manager not getting value from user preferences

android,sharedpreferences,preferences
I'm making an app where whenever you go to an activity, it plays a sound file. I made a preference in which you can change the sound file it plays. Here's the code for the Preference activity: <?xml version="1.0" encoding="utf-8"?> <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"> <ListPreference android:title="Sound" android:summary="Pick the sound!" android:key="soundChoice" android:defaultValue="a" android:entries="@array/soundList"...

Sublime 3 toggle comment command doesn't work in Windows

keyboard-shortcuts,sublimetext3,preferences
I've edited the file Preferences > Key Bindings User, and added this: [ { "keys": ["ctrl+/"], "command": "toggle_comment", "args": { "block": false } }, { "keys": ["ctrl+shift+/"], "command": "toggle_comment", "args": { "block": true } }, ] But the shortcuts doesn't work. What went wrong?...

How to use ListPrefference to select an Image for Live Wallpaper background

android,preferences,live-wallpaper
I am working on a Live Wallpaper. In this I want to have a background image selected by user and some other image rotating/Moving over the Background Image. I want to show a list of 4-6 images through preferences, in which user can select one. I want to set user...

Visual Studio 2013 code snippets / code templates

visual-studio,preferences,options
I.e. in eclipse there is a place where I can define my own user keywords for autocomplete like: word: else And template to paste: else { ${cursor} } Sorry if this is naive but so far I'm unable to discover such feature in Visual Studio. Does any one of You...

Preferences & javax.crypto.BadPaddingException: Given final block not properly padded

java,encryption,aes,preferences
I've been staring at this code for hours, and I must be missing something silly. As a result someone's help here is greatly appreciated. Below is example code, the simplest I could get it to repro this issue. The code works fine the first time it runs, but then after...