Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4092896
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T19:32:59+00:00 2026-05-20T19:32:59+00:00

I am building an app that requires the user to login to get access

  • 0

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]

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T19:33:00+00:00Added an answer on May 20, 2026 at 7:33 pm

    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.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Im building an app that requires the user to login with and ID and
I'm building a Django app that will need SSL on all user-facing pages. On
I am building a web application on Google App Engine that requires users to
so I am building a car loan app which requires input from the user,
I am building an app that requires core date to update every Sunday. e.g.
I'm building a rails 3.1 app that requires a load of data to be
I am building an MVC3 app that will require sending a mass email from
Currently building an app that runs on mobile phones not related to the issue
I am building an app that performs a lot of client side data downloading
I am building an app that does a lot of math and calculations. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.