I am trying to send data from child activity to parent. But somehow, onActivityResult(..) is not getting called. here is code
Parent activity
selecte
For anyone stuck with same problem, a symptom not to receive onActivityResult, following cases can cause this issue.
startActivityForResult() correctly, do not use startActivity().onBackPressed method, super.onBackPressed(); has to be positioned at the last of the method, not at the first line. (my case to spend 5 hours)android:launchMode="singleInstance" in manifest or equivalent argument to create a intent.noHistory="true" in manifest of the callee activity.setResult() is missed.finish() is called to close the activity. use finishActivity() to close callee activity.requestCode more than zero. negative value does not work.