Sunday, May 5, 2019

android - Multiple task with one button

The stack trace clearly tells you where the error is @ NavigateImage.java Line#31



Looking at code, it seems like you are passing wrong resource id in following line. May be you meant to use R.id.edit_destination



EditText e = (EditText)findViewById(Edit_current);



So, I suspect, it is crashing from



final String current = e.getText().toString();


Because it can't find the EditText e.



NOTE: In future as best practice, please use descriptive variable names.

No comments:

Post a Comment

plot explanation - Why did Peaches' mom hang on the tree? - Movies & TV

In the middle of the movie Ice Age: Continental Drift Peaches' mom asked Peaches to go to sleep. Then, she hung on the tree. This parti...