In my application I have to validate the EditText. It should only allow character, digits, underscores, and hyphens.
EditText
Here is my code:
edit
use this 2 function
public static boolean isdigit(EditText input) { String data=input.getText().toString().trim(); for(int i=0;i
pass Edittext variable in these function .. so you can have boolean value.