In android xml file im using editext as
<EditText
android:id="@+id/email"
android:layout_width="fill_parent"
android:layout_height="33dp"
android:inputType="textEmailAddress"
android:hint="Enter your mail id" />
In java file while validating that editext.
if(editextobj.getInputType()==InputType.TYPE_TEXT_VARIATION_EMAIL_ADDRESS){
}
or
if(getInputType()==(InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_VARIATION_EMAIL_ADDRESS)){
}
this condition is not working since editextobj.getInputType() returns 33 whereas developer document gives TYPE_TEXT_VARIATION_EMAIL_ADDRESS constant value as 32
How to validate inputype programatically?