startActivities()和startActivity类似,也是界面跳转:
Intent[] intents = new Intent[2]; intents[0] = new Intent(MainActivity.this, Test01.class); intents[1] = new Intent(MainActivity.this, Test02.class); startActivities(intents); //startActivities(intents,null);//bundle
跳转顺序是:由本Activity直接跳转至Test02,返回的时候会经过Test01.
时间: 2024-09-29 18:00:26