Is it possible to skip one activity in startActivityForResult? [duplicate]
Possible Duplicate:
How do you skip parts of an Activity stack when returning results in Android?
I have the following activity stack A->B->C. A activity has a ui element which starts activity B. B - is an activity which displays a list and starts activity C. In the activity C user selects some info which should be returned to activity A(B should be dismissed). Is it possible to call startActivityForResult so that the result will be returned from Activity C to activity A?
Duplicate of this question
Look at using FLAG_ACTIVITY_CLEAR_TOP there and in the Android docs here.
Why not just delegate the result B gets from C to A? Just call finish()
after you set the result you received from C on B.
精彩评论