An apology for my bad English, I\'m using google translate.
I\'m creating an activity in which users must create a new profile. I put a limit to edit text of 15 char
Use:
public void click (View view) { if (edittext.matcher(abcd).find ()) { Toast.maketext(this, "abcd Found", TOAST.LENGTH_LONG).show (); } }