Back to project page UK-Weather-repo.
The source code is released under:
Apache License
If you think the Android project UK-Weather-repo 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.haringeymobile.ukweather; // w ww .j a va 2s .co m import android.os.Bundle; import android.preference.PreferenceActivity; /** * An activity to provide settings for the app for Android versions before * Honeycomb (version 11). */ public class SettingsActivityPreHoneycomb extends PreferenceActivity { // The keys to store preference values. They must be the same as specified // in the res/userpreferences.xml. public static final String PREF_TEMPERATURE_SCALE = "temperature_scale"; public static final String PREF_WIND_SPEED_MEASUREMENT_UNIT = "wind_speed_measurement_unit"; public static final String PREF_DATA_CACHE_PERIOD = "data_cache_period"; @SuppressWarnings("deprecation") @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); addPreferencesFromResource(R.xml.userpreferences); } }