Android onActivityResult is always 0
In your list activity, onItemClickListener try the following replacing the setResult lines with:
if (getParent() == null) {
setResult(Activity.RESULT_OK, data);
}
else {
getParent().setResult(Activity.RESULT_OK, data);
}
I'm wondering whether there is a parent activity which is what you need to bind the data to and set the result on....
Concerning your returned data.
You do:
Bundle b = getIntent().getExtras();
but "getIntent()" returns the Intent that started THIS activity. If you want the returned data from the Activity you started for result, just take the data which is passed to
protected void onActivityResult(int requestCode, int resultCode, Intent data)