I am having A number input for edit text Whenever i am getting this no as Ex.gettext().toString() application crashes here ex is edit text variable associated with unique id
You have to convert string to integer, because in java every input is considered as a string so you've to convert it to integer.
eg:int num=Integer.parseInt(edittext.getText().toString() );
i have done same but application is crashing
Change // Ex.gettext().toString() ==>> Ex.getText().toString()
Every pre-defined function or method in Android Studio is written in camelCase format.also try @simran_tuteja 's "int num=Integer.parseInt(editText.getText().toString());" it may help.hope this may help.