Created
September 2, 2013 16:31
-
-
Save ec84b4/6414728 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package ir.khaled.mydictionary; | |
| import android.app.Activity; | |
| import android.os.Bundle; | |
| import android.app.Activity; | |
| import android.content.SharedPreferences; | |
| import android.os.Bundle; | |
| import android.preference.ListPreference; | |
| import android.preference.Preference; | |
| import android.preference.PreferenceActivity; | |
| import ir.khaled.mydictionary.R; | |
| public class Preferences extends PreferenceActivity { | |
| @Override | |
| protected void onCreate(Bundle savedInstanceState) { | |
| super.onCreate(savedInstanceState); | |
| addPreferencesFromResource(R.layout.preferences); | |
| // CharSequence[] entries = {"504 essential words"}; | |
| // CharSequence[] entryValues = { "504words"}; | |
| // ListPreference lp = (ListPreference)findPreference(R.); | |
| // lp.setEntries(entries); | |
| // lp.setEntryValues(entryValues); | |
| // lp.setDefaultValue("504words"); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment