防止未经授权的访问

发布于 2024-09-05 00:55:27 字数 146 浏览 0 评论 0原文

根据用户需求,他希望在开始使用该应用程序时通过 pin 码访问(如登录)来使用我们的 Android 应用程序。在 Android 或任何移动设备中,大多数应用程序都会使用布局重新启动。那么每次用户开始使用它时,我应该调用此登录警报对话框来访问哪个事件?或者让我知道更好。谢谢。

Based on the user requirements, he wants to use our android application via pin code access like login whenever he starts to use this application. In Android or any mobile, most of the applications start again the last using layout. so which event should i call this login alertdialog to access each time users start to use it? Or let me know the better. Thank you.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

雨夜星沙 2024-09-12 00:55:27

您必须在每个 Activity 中添加一段代码,以便它要求用户输入用户名和密码。密码。如果您使用的是正常活动,我想您可以在 onRestoreInstanceState 之类的方法中添加代码片段,这样您就可以确保在用户(重新)打开活动时它会立即执行。

You will have to add a snippet of code in each Activity you have so that it ask the user to type the user & password. If you are using normal activities I guess you can add the snippet inside methods like onRestoreInstanceState so that you can be sure it will be executed as soon as the user (re)open the activity.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文