I have problem with activity navigation. I have 3 activities.
1) ActivityA
is list of Invoice
2) ActivityB
is list of Items of Invoice (invoice detail)
3) ActivityC
is product list
- When user click on Invoice item in
ActivityA
, then I startActivityB
and show Invoice detail. - When user click on PLUS button in
ActivityB
, I startActivityC
and user can select products into Invoice. - When user click on BACK button in
ActivityC
, thenActivityC
finishes and user is inActivityB
.
Ok, it is functional, but I need:
When user click on PLUS button in ActivityA
, then create Invoice and directly start ActivityC
for product selection. OK, I start ActivityC
, user can select product. But problem is, when user click on Back button in ActivityC
, I need to navigate back to ActivityB
(to invoice detail) not to ActivityA
. How can I do this?
What is the best solution for this problem?