Android解決有時按HOME鍵再回來會重啓問題

在啓動頁的Activity的onCreate方法中加上下面兩段話便可解決 if(!isTaskRoot()){ finish(); return; } if (getIntent() != null) {     if ((getIntent().getFlags() & Intent.FLAG_ACTIVITY_BROUGHT_TO_FRONT) != 0) {
相關文章
相關標籤/搜索