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 4535274
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T14:23:06+00:00 2026-05-21T14:23:06+00:00

I have an app in which the user logs in from a main activity,

  • 0

I have an app in which the user logs in from a main activity, and then can browse through a heirarchy of entities using listviews. So, the Activity stack would look something like this:

A -> B -> B -> B -> …

where the number of B’s is proportional to how deep you are in the tree of entities.
Frequently, I find myself pressing backbackbackbackback to get to the root (the first ‘B’), but one too many presses and I log myself out, or even leave the app. I’m considering overriding the back button so that, when pressed from the root B, it will pop up a dialog essentially saying “Log out? (Y/N)”, thus blocking a string of back-presses from completely exiting the app.

I’ve noticed a sort of sensitivity regarding overriding the back button, though, and – while it makes sense to me – I want to know if this is considered a good use of the back button.

So:
Would this be considered an appropriate/conventional override of the back button?
Is there a better/more conventional way to accomplish this without overriding?

Also, so this question might be more generally useful in the future, are there any guidelines for what is acceptable/unacceptable when overriding the back button?

  • 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-21T14:23:06+00:00Added an answer on May 21, 2026 at 2:23 pm

    I would find this use acceptable; I’ve seen a number of apps that ask for a confirm before exit – if the user wants to exit an app, they usually will press the Home button and let Android handle the finish() if and when it’s needed.

    I know I’ve accidentally exited an app by pressing back too many times 🙁

    Dotmister’s comment about Handcent is spot on – the back button should feel natural to the user; your use seems to adhere to this, in that a user will cycle back through activities as expected for the most part. As he said though, give it a try and test it.

    Coincidentally, I have a similar flow in my app, but I’ve included a button for the root activity.

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

Sidebar

Related Questions

I have a flex app which allows user to create some content. this content
I have an android app which let the user to submit a form ,
I have a Flash web app which displays user submitted PNG files. Files are
We have client server based app which saves user related data into a zip
I have a web app which lets the user select the excel spreadsheet and
I have an android app which gives the user the option of loading a
I have an app which access an app folder on a per user basis.
I have an MFC app which is wizard based. The App asks a user
I have a user profile page on my web app which has contact information.
I have a Silverlight web app which uses ASP.net Website administration tool for user

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.