Android Studio Java Catch Pell Button
int guessValue;
//Try-Catch to Catch any Kind of Error from editText
try {
guessValue = Integer.parseInt(editText.getText().toString());
}catch (Exception e)
{
Toast.makeText(this,"Please Enter a Valid Number",Toast.LENGTH_LONG).show();
return;
}
Curious Crane