Sunday 5 May 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

php - file_get_contents shows unexpected output while reading a file

I want to output an inline jpg image as a base64 encoded string, however when I do this : $contents = file_get_contents($filename); print &q...