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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T21:57:02+00:00 2026-06-10T21:57:02+00:00

In my app sometimes the user clicks on the back button, and there is

  • 0

In my app sometimes the user clicks on the back button, and there is no response, so they click again right away, and instead of going back to previous screen they go 2-3 screens back. Sometimes out of the app entirely. And yet these back clicks all occured while just one screen was shown! Is there any way to intercept this and ignore these follow up back clicks. Perhaps observe their spacing or the screen in which they occured? Does anyone else have this problem?

My guess is nothing can be done because the user has ultimate control over back button, but why does Android not ignore the extra clicks since they all happen on the same page and it has not even stated to switch??

  • 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-06-10T21:57:04+00:00Added an answer on June 10, 2026 at 9:57 pm

    You can catch the back button easily with the below code, however you should really not be taking forever to respond. Your UI thread is blocked doing something and this is fundamentally wrong.

    @Override
    public void onBackPressed() {
      // do something on back.
      return;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In my web app the user can sometimes click the same button a number
I'm coding a windows phone 7.1 app, and when the user clicks a specific
I have a button that the user can click which sends them to the
Is there any way in android to determine when the user clicked the app
I got an app that the user insert a text, and when he clicks
In my app, I use an MKPolyline to track the user's path. Sometimes (and
My servlet-based web-app sometimes fails to close Log4j log files when redeployed, leaking to
In my app I sometimes need to rebuild and repopulate database file. SQLite databse
I am developing a web app and in this app I sometimes load content
I have a memory leak in my iOS app which sometimes causes it to

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.