• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Improper navigation from activity to fragment activity

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?
 
Back
Top Bottom