开发者

Is it possible to skip one activity in startActivityForResult? [duplicate]

This question already has answers here: Closed 11 years ago.开发者_如何学运维

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜