Back to project page android-rackspacecloud.
The source code is released under:
MIT License
If you think the Android project android-rackspacecloud listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.rackspacecloud.android; /* w ww .j a va 2 s.c o m*/ import android.os.Bundle; import android.preference.PreferenceActivity; public class Preferences extends PreferenceActivity{ // The name of the SharedPreferences file we'll store preferences in. public static final String SHARED_PREFERENCES_NAME = "Preferences"; // The key to the preference for the type of results to show (us/uk). // Identical to the value specified in res/values/strings.xml. public static final String PREF_KEY_RESULTS_TYPE = "countries_type"; // The key to the Auth Server preference. public static final String PREF_KEY_AUTH_SERVER = "authServerPref"; // The key to the application passcode hash. public static final String PREF_KEY_PASSCODE_HASH = "passcode"; //the key to the Password on/off preference. public static final String PREF_KEY_PASSWORD_LOCK = "hasPassword"; // The values of the preferences for the type of results to show (us/uk). // Identical to the values specified in res/values/strings.xml. public static final int COUNTRY_US = 0; public static final int COUNTRY_UK = 1; //Define auth server here public static final String COUNTRY_US_AUTH_SERVER = "https://auth.api.rackspacecloud.com/v1.0"; public static final String COUNTRY_UK_AUTH_SERVER = "https://lon.auth.api.rackspacecloud.com/v1.0"; protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); getPreferenceManager().setSharedPreferencesName(SHARED_PREFERENCES_NAME); addPreferencesFromResource(R.layout.preferences); } }