java.lang.NumberFormatException: Invalid int: “” in android

Some code would help with the syntax but basically

 if ("".equals(text)  // where text is the text that you get from an EditText or wherever you get it
 {    // give message to enter valid text;    }

Also, you can surround with a try/catch and catch a numberFormatException then print an appropriate message

Leave a Comment