Onactivityresult Never Called
So far, I used the startActivity function with success and now that I need to use the startActivityResult, I have a problem. When using this function, the activity I expect to be
Solution 1:
I had same problem and solved it: Just remove
android:launchMode="singleInstance"
Solution 2:
In my case, I didn't realize I was calling startActivityForResult
from an activity that had the android:noHistory
attribute set to true in the manifest. Therefore, the onActivityResult
was never called as there was no activity instance anymore.
Solution 3:
Did you add the setResult()
call in your MoodPicker class ?
Solution 4:
android:noHistory="true"
like
android:launchMode="singleInstance"
will stop onActivityResult from receive result.
Solution 5:
If I am reading this right, all the code referenced needs to be in "FriendPicker". In "MoodPicker" you need code like this that sets the result and ends itself:
this.setResult(SUCCESS_RETURN_CODE, i);
this.finish();
Let me know if this helps...
Post a Comment for "Onactivityresult Never Called"