应用程序应该注销到日志屏幕还是主屏幕?

发布于 2024-10-26 09:02:38 字数 370 浏览 2 评论 0原文

我正在构建一个需要用户登录才能访问其信息的应用程序。该应用程序内有四个分支,均可通过菜单选项访问。当用户登录时,他被放置在其中一个分支的第一个屏幕上。

我对应用程序进行了编程,以便当用户返回到任何分支的第一个屏幕时,活动堆栈将被刷新并再次按回退出应用程序。

问题:退出的最佳做法是什么?

  1. 如果再次按下返回键,用户将退出并返回到登录屏幕。
  2. 或者应该按“返回”来注销用户并将用户返回到 Android 主屏幕?

我已经看到了这两种方法,但不确定我应该考虑什么标准来做出正确的可用性决定。

澄清流程:

[Android 主屏幕] -> [应用程序登录屏幕]-> [内部应用分支]

I am building an app that requires the user to login to get access to their information. Within the app there are four branches all accessible via menu options. When the user logs in he is placed on the first screen of one of the branches.

I programmed the app so that when the user BACKs to the first screen of any branch, the activity stack is flushed and pressing back again exits the app.

The question: What is the best practice for exiting?

  1. Should pressing back a second time log the user out and return to the login screen.
  2. Or should pressing back log the user out and return the user to the android home screen?

I have seen both ways of doing it and not sure what criteria I should look at to make the proper usability decision.

To clarify the flow:

[Android Home Screen] -> [App Login Screen] -> [Internal App Branch]

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

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

发布评论

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

评论(2

小…楫夜泊 2024-11-02 09:02:38

我通常捕获“后退”按钮,给用户一个 Toast 通知,例如“再次按“后退”按钮退出”。我捕获 System.currentTimeMillis 并比较后续按下的阈值 2 秒或接近该阈值。我见过几个应用程序可以做到这一点,对我来说这似乎非常直观。

I usually capture the Back button, give the user a Toast notification like "Press Back button again to exit". I capture the System.currentTimeMillis and compare subsequent presses for a threshold of 2 seconds or something close to that. I've seen a couple apps do that and it seems pretty intuitive to me.

花开浅夏 2024-11-02 09:02:38

如果主屏幕不需要身份验证,那么我更喜欢这种方法。但这是一个非常主观的问题。我确信还有其他人会不同意我的观点,并说他们更喜欢登录屏幕。这就是为什么它非常主观:)

If the home screen does not require authentication then I would prefer this method. This is a highly subjective question, though. I'm sure there are other people who would disagree with me and say they prefer the log in screen. That's why it's pretty subjective :)

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