4

I have an Activity A that calls an Activity B using startActivityForResult(). Under certain conditions Activity B needs to call on Activity C for another result so I use the startActivityForResult() method again.

However, when I setResult() and finish() in Activity C, it calls the onActivityResult() method in Activity A instead of Activity B.

Is there a way to get around this ??

4

1 に答える 1

6

not sure i understood.

you mean that this is the scenario you wish to be :

A -> B -> C ; B <- C , A <- B

yet the current scenario is :

A -> B -> C ; A <- C

where -> denotes a 'calls activity' and <- denotes a 'gets result from'.

maybe you just called "finish()" on activity B , or maybe you've set "noHistory=true" for it?

于 2012-06-12T12:05:03.637 に答える