Edit Text shows exception Invalid Int “”

In the aboue code you have used like converting String to Integer in that case you will not convert “”(Empty String) to Integer

Integer.parseInt(monthlyTest);  // Here monthyTest value is ""

Please make sure the string is not empty befor conversion.

Check the length of the String is should be greater than 0.

if(monthlyTest.length()>0)

Thanks…..

Leave a Comment