用Android Studio Monitor 终止app为什么会返回上一个Activity
巴扎黑
巴扎黑 2017-04-17 17:35:02
0
2
598

我有两个Activity,Activity1 通过Intent启动Activity2,当在Activity2的时候,我用Android Studio Monitor终止这个app,为什么app没有退出,反而是重新打开了Activity1?谢谢

巴扎黑
巴扎黑

reply all(2)
Peter_Zhu

How to terminate the app in Android Studio Monitor? You should just end the current activity. If you want to terminate the app, there are many ways
Inherit baseActivity, collect avtivity in baseactivity and then end it all
Or use android.os.Process.killProcess(android.os.Process.myPid());
or System.exit(0) ;

巴扎黑

It is estimated that this is an abnormal end and we will help you restart the application

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template