[Solved] go to next activity without crash


The Logcat shows that the exception occurred when parsing Integer when the provided Integer is “”. From the fields you are using, the integer is probably edtAgeInput.

The way you solve it depends from how you want to handle empty values. If you are getting the user input, what should happen if age is not provided/not available? (this depends from what you are trying to achieve) You could add a default value which will be used in case the fields are left empty. Alternatively, if the next activity is triggered by the user clicking a button you could only enable the button after all fields have values. Or, after user click the button, you can check the values and if they are not as expected, highlight the field and allow the user to correct before launching the next activity.

2

solved go to next activity without crash