I have 3 activity A , B and C
Flow is:
Activity A calls B , B Call C. (A -> B -> C )
Now I am in Activity C and want to return some result to Activity A without involving B.
Scenario is Activity B should be call only by A ( if user press back button from C , B will not be call and activity A will comes in front).
Any one let me know how to deal with this situation.
Update :
I am calling activity B from A
Intent intent = new Intent(this, B.class);
startActivityForResult(intent, 0);
in same way I am calling C from B.
In A i am over riding onActivityResult method
StartActivityForResultfrom ActivityA.StartActivityForResultfrom ActivityB.Don't finish ActivityB.set the result.OnActivityResult()set the result to ActivityA and finish ActivityB.onBackPressed()and set the result null and finish the ActivityC