1. Download our Official Android App: Forums for Android!

Apps Improper navigation from activity to fragment activity

Discussion in 'Android Development' started by vsvankhede, Dec 21, 2014.

  1. vsvankhede

    vsvankhede Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    3
    Joined:
    Jul 31, 2014

    Jul 31, 2014
    3
    0
    5
    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 in container.xml in 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 MainActivity come in front with fragment1 but I want fragment3 instead of fragment1.

    So what should I do to do this?
     

    Advertisement

Share This Page

Loading...