Editext validation for button click
<p>I have an edittext and when the button is clicked it allows only Strings. </p>

<p>I do this by using an if statement to show a dialog with this condition: <code>(str.matches("[0-9]*")</code></p>

<p>but when I enter this ttttt12323 and press the button it allows string and int to go through. </p>

<p>I want to put validation for not allowing string and text together specifically only Strings. </p>

<p>Can this be done. Thanks</p>
