Does anyone have sample code to validate user entered text in preferences? For example, I have a EditTextPreference for user to enter an email address. I'd like to validate the format of email address entered and pop up an alert dialog if the format isn't correct. Anyone have any sample code for this? Thanks
...
Hi!
I have some questions about the registry.
We have
Preferences p = Preferences.userRoot();
If we execute
p.nodeExists("/HKEY_CURRENT_USER/Software/Policies/Microsoft")
it will return true.
After it:
p = p.node("/HKEY_CURRENT_USER/Software/Policies");
for(String s : p.childrenNames()){
System.out.println(">" + s);
...
I'm coding an app that uses configurable profiles for different user preferences: many different users will use the same app on the same device.
The problem is that I can't use Android's PreferenceActivity because it just support one user per application.
Is there an easy way to generate the user interface for configuration, or I hav...
Can i finalise the webpreferences in twiki like i can do that in foswiki
...
What are the priority order of the following preferences in wiki specifically twiki or foswiki.
Default Preferences
Web Preferences
Site Preferences
...
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 via dropbox (for example) for the other to use? Perhaps by symlinking the laptop's config...
So I am modifying the Cube live wallpaper example. I have a class that extends PreferenceActivity, and I added the Activity in my manifest file. I keep getting ActivityNotFoundExceptions.
Here is my preference class :
package com.p.t.wallpapers.mywallpaper;
import com.p.t.wallpapers.mywallpaper.R;
import android.content.SharedPrefe...
Hi,
I am using a PreferenceActivity to show some settings for my application. I am inflating the settings via a xml file so that my onCreate (and complete class methods) looks like this:
public class FooActivity extends PreferenceActivity {
@Override
public void onCreate(Bundle icicle) {
super.onCreate(icicle);
addPreferencesFr...
I have a PreferenceActivity with a bunch of (Sub)PreferenceScreens. Each such (Sub)PreferenceScreen represents an account and has the account-username as its title.
PreferenceScreen root = mgr.createPreferenceScreen(this);
for (MyAccountClass account : myAccounts) {
final PreferenceScreen accScreen = mgr.createPreferenceScreen(this)...
I'm using Windows to develop android apps and want to know where user preference data is located. It says at /data/data/package/...., but where can I actually see the preference file? Via eclipse or command line tools?
...
One of our program writes program information(window title, memory etc) in Java Preferences. On windows this is available under registry. How can I read the values written by Java program using c (or c++).
Looks like API I should use is RegGetValue. Is this guaranteed to work on Windows XP 32 bit?
The String written by java is UTF-8 ...
Hi everyone,
I have previously exported the default preferences but accidentally deleted it. Is there anywhere I can download the default set of preferences from? I am running the latest version on Mac OS X.
Thanks,
Dany.
...
I have two plugins, say com.site.plugin.core and com.site.plugin.ui.
I'd like to separate core part from UI part, so at plugin com.site.plugin.ui I created Preferences page where I defined some preferences, which should be used by com.site.plugin.core. I check article at Eclipse site, but it is quite outdated, and linked bug also do not ...
I am using a PreferenceActivity to let the user set some values.
I am feeding it the xml file with the defined preferences.
I have set all the android:defaultValue="" for them.
When I start my application, I need the preferences, or if they are not set yet manually, I want the default values:
SharedPreferences prefs = PreferenceManage...
Hi,
I want to store / save personal preference settings like Email, Phone number for an App. I have few forms which send info by Email to my ID. I want to know the Email & Phone number of user so I can contact this person if need be. I don't want users to keep entering their Email ID & Phone No. everytime in each form. It's wise to take...
Hi all,
I seem to be having trouble reading preferences from my AppWidgetProvider class. My code works in an Activity, but it does not in an AppWidgetProvider. Here is the code I am using to read back a boolean:
SharedPreferences settings = getSharedPreferences(PREFS_NAME, 0);
boolean autoreplyon = settings.getBoolean("autoreplyon", fa...
I am calling a PreferenceActivity from another activity and then updating the application state (ie: changing the font size) on onActivityResult, based on the preference changes.
I was thinking it would be better to put the state update logic in the PreferenceActivity. That way I don't have the duplicate the logic in each activity that ...
I have a preference screen for my application and in the manifest I have given it a theme using:
android:theme="@android:style/Theme.Light.WallpaperSettings"
However when I nest another preference screen inside this one such as:
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res...
I created a Settings.bundle in my app where the user can change some properties like font size. It works.
But when I leave my App, and I change my setting, I don't know how I can get notified of the change.
For the moment, I create a function call each time a view is loaded that check for app settings.
But I wonder if there is an othe...
My application (Asp.Net MVC) has great interaction with the user interface (jQuery/js). For example, setting various searches charts, moving the gadgets on the screen and more .. I of course want to keep all data for each user. So that data will be available from any page in the Dumaine and the user will accepts his preferences.
Now I k...