I developed one simple app, like subtraction, addition. In this app I use three EditTexts, one for answer and other two for question. I want to calculate the answer of quest
I used this and it's correct:
public void afterTextChanged(Editable arg0) { String inputs = input.getText().toString(); Integer index=0; if(!inputs.equals("")) index=Integer.valueOf(inputs); }