android-inputtype
EditText, inputType values (XML)
You can use the properties tab in eclipse to set various values. here are all the possible values none text textCapCharacters textCapWords textCapSentences textAutoCorrect textAutoComplete textMultiLine textImeMultiLine textNoSuggestions textUri textEmailAddress textEmailSubject textShortMessage textLongMessage textPersonName textPostalAddress textPassword textVisiblePassword textWebEditText textFilter textPhonetic textWebEmailAddress textWebPassword number numberSigned numberDecimal numberPassword phone datetime date time Check here for explanations: http://developer.android.com/reference/android/widget/TextView.html#attr_android:inputType
Set inputType for an EditText Programmatically?
For setting the input type for an EditText programmatically, you have to specify that input class type is text. editPass.setInputType(InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_VARIATION_PASSWORD);