Android question: I am currently in Activity A and inside of A I start Activity B using startActivityForResult. At different points in B I can set different values as the result using setResult. While I am still inside of Activity B, is there any way for me to check what will be the current result that will be sent back to Activity A? (Or do I have to keep track of this information myself?) Thanks.
Android question: I am currently in Activity A and inside of A I start
Share
Javanator is right – the best way is to keep track of the result yourself.
However, you can make it a bit easier on yourself if you use the
setResult(int resultCode, Intent data)form ofsetResult. If you maintaindataas a field in yourActivityclass, then you can use it to track your current return status while also returning that same tracking object to the callingActivity.