Home > Mobile >  How to realize the running app clicking on the icon will not restart after returning to the desktop
How to realize the running app clicking on the icon will not restart after returning to the desktop

Time:09-19

Online method basically tried doesn't , for an effective way to real machine with oppo a5 test

CodePudding user response:

General mobile phone app is in accordance with the home button and then click on the icon is to return to the original page instead of reopening,,,,

CodePudding user response:

reference 1st floor of the kite runner reply:
general mobile phone app is in accordance with the home button and then click on the icon is to return to the original page instead of the reopened ah,,,,
it is as you say, no welcome screen?

CodePudding user response:

No not restart in the true sense, only through the code, make a restart of the illusion, need to keep the scene and record before, and then according to the state started to do the corresponding processing

CodePudding user response:

Add the background resides

CodePudding user response:

reference 4 floor livezcc response:
add background resides.
tried is invalid

CodePudding user response:

The building Lord may confuse the representation and the inner, this is not a good habit; Add some print under debugging

CodePudding user response:

Intercept page return key, do not call finish but withdrew to mobile phone desktop,
Your questions asked no point, really hard to understand,

CodePudding user response:

Specifically,,,,

CodePudding user response:

 if (! IsTaskRoot ()) {
finish();
return;
}

Add this on the first page of the onCreate (), so as not to restart
  • Related