java - How to get the subtraction result of two EditText in third EditText for Android? -


i'm new android programming. while making program looking program auto fill subtraction result of 2 edittext widgets in third edittext, without button. please me find solution.

int firstvalue=firsttext.gettext.tostring(); int secondvalue=secondtext.gettext.tostring(); int answer=firstvalue - secondvalue; thirdvalue.settext(answer); 

hope works. if problem occour tell me


Comments

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

python - RuntimeWarning: PyOS_InputHook is not available for interactive use of PyGTK -