Perhaps a frequent problem of many, but alas, I did not find the answer. And the problem, or rather the error is the following:
java.lang.RuntimeException: Failure delivering result ResultInfo {who = null, request = 65551, result = -1, data = Intent {(has extras)}} to activity {md.site.md/md.site.md.activities .Activity_Md}: java.lang.IndexOutOfBoundsException: Invalid index 22, size is 4 at android.app.ActivityThread.deliverResults (ActivityThread.java.0635)
Well, it also highlights errors in specific lines.
- In the fragment
service.upload1(file1, str, stringMap, new CancelableCallback(mSelectPath.get(position)) { uploadPhoto(mSelectPath, position, controlList.get(position).getImageUploads().size() - 1);- In
super.onActivityResult(requestCode, resultCode, data);
It is possible to understand some moments is not enough, please clarify in the comments (I’ll add everything you need).
mSelectPath.get(position), orcontrolList.get(position)- Vladyslav Matviienko