I have already tried setting the EditText default value to be zero but when it comes to editing and erase as \"\" ( empty space , no more wordings _ in the Edit Text field <
Surround the offending lines with a try/catch block.
try {
Log.d("Month" , monthlyTest);
Log.d("freeMonths" , freeMonths);
monthlyFeeforChannel = Integer.parseInt(monthlyTest);
MonthlyFee.add(monthlyFeeforChannel);
FreePeriod.add(freeMonths);
}
catch (NumberFormatException nfe) {
nfe.printStackTrace();
// Alert the user/log the error, etc.
}