I\'m trying to create a for-loop to add views to a layout. The for-loop is working fine (I tried it with initialized variables) but I need to get an in
In order to prevent an int from getting a "" value, which is what happens when there's a second click in an empty EditText field, you can throw this line in your java code:
int i;
String change = numSensors.getText().toString();
if(!(change.equals("")))
{
i = Integer.parseInt(change);
}