preferences

FF extension: saving a value in preferences and retrieving in the js file

I am making an extension which should take a link as the user input only once. Then the entire extension keeps using that link on various functions in the JS file. When the user changes it, the value accessed by the js file also changes accordingly. I am using the following but it does not work for me var pref_manager = Components.class...

Default value of Android preference

How do you get the default value of an Android preference defined in XML? Context: I don't want to repeat the definition of the default value in both the code and the preferences XML. ...

Recording purchased products from in-app store for built-in products

I'm creating an in-app store for a few built-in features for my iphone app. Apple's documention recommends using the Application Preferences for storing this, but another question in this forum suggested using NSUserDefaults for another task for which Application Preferences was recommended (by Apple). Can someone clarify if, for in-ap...

Track active item in Application Explorer in jDeveloper

Is there a setting in jDeveloper 11g where the file of the code I'm seeing is automatically focused on the application explorer? I'm specifically looking for the VS.NET setting "track active item in solution explorer" ...

Android: Defined array resource not found ?!

Hi, i have a strange (?) error in my android application. I have defined some arrays in values/arrays.xml the following way: <?xml version="1.0" encoding="utf-8"?> <resources> <array name="perimeter"> <item>10 miles</item> <item>20 miles</item> <item>30 miles</item> </array> <array name="regvalues">...

Firefox extension dev: observing preferences, avoid multiple notifications

Let's say my Firefox extension has multiple preferences, but some of them are grouped, like check interval, fail retry interval, destination url. Those are used in just single function. When I subscribe to preference service and add observer, the observe callback will be called for each changed preference, so if by chance user changed a...

Programmatically configure MATLAB

Since MathWorks release a new version of MATLAB every six months, it's a bit of hassle having to set up the latest version each time. What I'd like is an automatic way of configuring MATLAB, to save wasting time on administrative hassle. The sorts of things I usually do when I get a new version are: Add commonly used directories to t...

How to access all the children of a PreferenceScreen ?

I'm trying to programmatically uncheck all the CheckBoxPreference children of a PreferenceScreen in my app. How can I do that? ...

Android preferences when application only contains service

I have a app that only consists of 2 services and a broadcast receiver (they check the internet periodically). I need to store preferences that can be shared across those services. Is this the same as for an activity? Just use getsharedpreferences()? This doesn't seem to be documented very well. ...

Display options for email

I am displaing one particular mail message. I wonder if i can change display preferences. I want to change options to display pictures embedded in mail body. I access to mail in that way: Outlook.Application outLookApp = new Outlook.Application(); Outlook.Inspector inspector = outLookApp.ActiveInspector(); Outlook.NameSpace nameSpace = ...

[iPhone]How to deploy a app with Application Preferences to real device

Every thing is OK in simulator but when I deploy my app to real device (jailbroken) I can't find app's Application Preferences in Setting or my iPhone! What wrong?! Please help me! ...

Preferred Windows Java Development Environment

I've been a Linux Java developer for years and have loved it. I just got a new laptop which is running Windows 7. I could wipe the drive and go back to my typical Linux dev setup: vim for editing, tabbed Bash windows running javac and java for smaller projects, ant for big projects That said, I'm really thinking it couldn't hurt to lear...

When to use Stored Procedures instead of using any ORM with programming logic?

Hi all I wanted to know when I should prefer writing stored procedures over writing programming logic and pulling data using a ORM or something else. ...

Where to store Android preference keys?

When I create preference activity I define all preferences in xml file. Every preference has a key defined in this xml. But when I access preference I write: SharedPreferences appPreferences = PreferenceManager.getDefaultSharedPreferences(this); boolean foo_value = appPreferences.getBoolean("foo_key_defined_in_xml", false); Is there ...

How do I disable maven build when using Maven 2.0 integration for eclipse?

How do I stop the "Maven 2.0 integration" plugin from running maven build, while keeping "build automatically" checked? I'm pretty sure it used to be some check box to disable maven build before, but after upgrading Ubuntu; eclipse seems to have been updated in the process, and now I cannot find any way to turn off the maven build. The ...

Converting NSUserDefaults to Keychain?

So, NSUserDefaults is quite easy to use. But apparently, it is not too secure - there is no encryption. And of course the client wants the app prefs to be secure because it contains sensitive data. But the Keychain is secure, though hard to code (apparently). So is there a way to easily convert NSUserDefaults code to Keychain code? In o...

Initialize preferences from XML in the main Activity

My problem is that when I start application and user didn't open my PreferenceActivity so when I retrieve them don't get any default values defined in my preference.xml file. preference.xml file: <?xml version="1.0" encoding="utf-8"?> <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" android:key="applicat...

Specifiy package path for Androd:entries

Hi. I am using following code in preferences page in android to show a list of items. The list and values are located in a file at location "app/res/xml/time.xml" <ListPreference android:title="Time unit list" android:summary="Select the time unit" android:dependency="Main_Option" android:ke...

Password in Preferences ...

Hello everyone, I want to set the preferences of my application in the settings application. I have gone thru the documentation for creating preferences for iphone applications using settings.bundle . But the documentation only speaks of how to set the value and extract the values from the preferences. But in my settings application for...

How to reschedule Alarm Manager on Preference Change

Hi, I have an Android Service. When a phone boots up, a broadcast receiver receives a notification and it schedules the service to run repeatedly at a gap of X minutes. Henceforth After every X minutes another broadcast receiver gets those notifications and kicks the service off, which does it's job and quits. So far so good. Now I wan...