• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Activity onActivityResult return confuse

mentago

Lurker
I have an Activity Called "A", and in it there is a Button called "a"
click a
Dialog called "B" is invoked, and Dialog "B" there is a Button "b"
click b
Activity "C" is invoked , and There is a Button "c" in C

Now the situation is:

I override the "onActivityResult" method to obtain the return value in A
when I click the b, the event in this button is "Intent(A, C)"
and when the C is called and appear, Dialog B is dismiss

but when the B dismiss, the method "onActivityResult" is called, why?, and the "RequestCode" is the request_Code set in the "startActivityForResult(intent, request_code)"; and when the "c" is clicked, it caled the "setResult" method, but the "onActivityResult" did not called any more....

what is the matter of this situation ?

and is there any way to let the "value" in C pass to the Avtivity A ?
 
Back
Top Bottom