This has been killing me for two days now. I have a main Activity A which calls a second Activity B. Activity B simply presents the user with a listview. When I press an ite
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....