明显是启动模式的问题,解决方法如下:
启动的应用使用:
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK&Intent.FLAG_ACTIVITY_CLEAR_TASK);
被启动的应用页面设置:
android:launchMode=”singleInstance”
但是设置成这样的话不能多次调用同一个页面,应用内或者页面内调用可以这样设置:
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK&Intent.FLAG_ACTIVITY_CLEAR_TASK);
只是android:launchMode设置为:
android:launchMode=”standard”