0

I have an Activity A. On a button click, I have started the Activity B like this

{               
    startActivity(new Intent(A.this, B.class));
}

When I am in the Activity B, I have pressed the home button. If I re-launch the app it is navigating to A, instead of B. Could some one guide me how is it possible to navigate to B?

somia
  • 611
  • 5
  • 22

1 Answers1

2

I had android:clearTaskOnLaunch="true" in the manifest file, which was causing the issue. Removing this line resolved my issue.

tahsinRupam
  • 6,325
  • 1
  • 18
  • 34
somia
  • 611
  • 5
  • 22