adb shell am start -n com.example.launchmodes/.MainActivity
When ActivityB is on top of MainActivity, an new instance of MainActivity will be created.
When ActivityB is on top of MainActivity, ActivityB will be finished, making MainActivity the top activity. MainActivity.onNewIntent will be called.