• 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

vsvankhede

Lurker
Jul 31, 2014
3
0
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?
 

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones