I launched App1 from App2, and here are the methods in App2:
Intent resolveIntent = getPackageManager()
.getLaunchIntentForPackage("com.example.weijunhao.launchmode");
startActivity(resolveIntent);
Then I press the home button to go to the home screen and I open App2 by pressing the launch icon.
Why does the onCreate
method get called and not the onRestart
method?