安卓。通过单击“主页”捕获应用程序退出
我在使用“主页”单击离开后识别返回应用程序时遇到问题。
其主要目的是定义何时必须向用户显示“输入密码”对话框。
因此,让我们想象一下这样的工作流程,用户在应用程序中工作并决定查看明天的天气。用户单击“主页”按钮并转移到桌面。现在他回到我的申请。此时,我们必须通过建议用户输入密码来验证我们的用户是否仍然是正确的用户。
我如何在这里识别这种情况? (离开后点击主页返回)
谢谢
I have an issue with identifying return to application after it was left using Home click.
The main purpose of this is to define when do I have to display to user Type Password dialog.
So, let's imaging such workflow, User works in application and decides to see what's the weather tomorrow. The User clicks Home button and is transfered to desktop. Now he goes back to My application. At this point we have to verify that our User is still the right one User by proposing him to type password.
How can I identify this condition here? (returning after leaving by Home click)
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试设置
android:stateNotNeeded
为该活动的AndroidManifest.xml
内的true
。Try setting
android:stateNotNeeded
totrue
withinAndroidManifest.xml
for that activity.