The best way to start fragments

I have the following scenario. Tabhost manages four ListFragmnet. For each ListFragment, I have several fragments. For example, associated with ListFragmnet 1 I have fragments A, B, C, and it may happen that fragment A “launches” fragment B, which can trigger fragment C. Is it right to allow fragments to start each other, or is there a more correct way?

thank

Edit:

TabFragmentActivity:
    tab1(ListFragment): fragment 1 -> fragment 2 -> .... -> fragment N
    tab2(ListFragment): fragment 1 -> fragment 2 -> .... -> fragment N
    tab3(ListFragment): fragment 1 -> fragment 2 -> .... -> fragment N
    tab4(ListFragment): fragment 1 -> fragment 2 -> .... -> fragment N

it needs to be achieved. So my question is the best way to manage a transaction from fragment 1 to fragment N per tab?

Thanks again

+5
source share
1 answer

- ! , , - , , .

: - , , startFragmentB(); - . ((MyInterface) getActivity()) startFragmentB(); - - ...

, - , , , :

, , , , , , ( ).

+5

All Articles