I have MainActivity extends BaseActivity. BaseActivity extends SlidingFragmentActivity(using Sliding Manu Library)
MainActivty's setContentView is container.xml
I have 3 fragments. Fragement1 is set to container.xml at onCreate of MainActivity. container may contain only one fragment at a time.
Here I replace fragment1 with fragment3. And from fragment3 I have created NewActivity.
Problem is that when I press back button from newly created Activity, MainActivity comes in front with fragment1 but I want fragment3 instead of fragment1.
So what should I do to do this?
Aucun commentaire:
Enregistrer un commentaire