Back to project page photohunt-app.
The source code is released under:
MIT License
If you think the Android project photohunt-app 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 edu.rit.csh.photohunt; //from ww w . ja v a 2 s. c o m import android.content.ComponentName; import android.content.Context; import android.content.Intent; import android.content.ServiceConnection; import android.os.Bundle; import android.os.IBinder; import android.preference.EditTextPreference; import android.preference.PreferenceFragment; import android.text.InputType; /** * A simple {@link android.support.v4.app.Fragment} subclass. * */ public class SettingsFragment extends PreferenceFragment { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // Load the preferences from an XML resource addPreferencesFromResource(R.xml.preferences); EditTextPreference etp1 = (EditTextPreference)findPreference("key"); etp1.getEditText().setInputType(InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_VARIATION_PASSWORD); } }