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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T15:26:36+00:00 2026-05-26T15:26:36+00:00

My application uses differents activities to do what I want it to do. The

  • 0

My application uses differents activities to do what I want it to do. The behaviour I am looking for is the complete closure of the application, with each and every activity present in the task being closed, when the back key is pressed.

Is this possible? If yes, how can I do?

Thanks in advance for the time you will spend trying to help me.

  • 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-26T15:26:36+00:00Added an answer on May 26, 2026 at 3:26 pm

    If you want this behavior in every activity, then when each activity starts another (by calling startActivity()), have it then call finish(). That will remove it from the back stack. That way, there is only one activity for your app at any time, and when when the user presses the back key, it will finish and your app will exit.

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

Sidebar

Related Questions

My application uses loads of Java threads. I am looking for a reliable understanding
Our application uses Hibernate with Sql Server 2005. Being a DBA, I am not
My application uses a large amount of Panda objects. Each Panda has a list
I have a web-application which uses hibernate and for some reason every thread (httprequest
The main Activity I use in my Android application uses a fair amount of
My application uses Lucene.NET to index various text files. Since each text file is
My c# application uses two different pre-packaged parsers, that each use a different strong
My application uses many critical sections, and I want to know which of them
My application uses SAF (jsr 296). I want to use different look and feels
My application uses UITabBarController with 4 tabs. Each tab will have a UIWebView along

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.