有的应用安全性比较高,当用户切换至后台后再次点击应用图标进入的时候,要求重新输入密码登陆。 只需将登陆页的启动模式设置为singleInstance即可 代码如下:
android:launchMode="singleInstance"