Intent intent = new Intent(ATestActivity.this, BTestActivity.class);
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK|Intent.FLAG_ACTIVITY_CLEAR_TOP);
startActivity(intent);
A-》B是這樣啟動的,然后B-〉c,再C-》B圈驼,發(fā)現(xiàn)B并不會走onNewIntent方法挫酿,而是走了onCreate->onStart->onResume惨缆,C也沒有走onDestroy方法
Activity使用場景解讀在之前的一篇文章《基于場景解讀Android四大組件》中談到Activity是Android提供給開發(fā)者的一個組件辟灰,主要用于前臺界面的展示和交互岔冀,為了讓開發(fā)者很方便的達到這個...