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

  • Home
  • SEARCH
  • 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 7650555
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T11:16:53+00:00 2026-05-31T11:16:53+00:00

I am programming an Android application and have a curious issue. My application has

  • 0

I am programming an Android application and have a curious issue.

My application has a LoginActivity that defines the filter for launch events.
As soon as login is complete, it starts the “Home” activity using startActivity(new Intent(LoginActivity.this, HomeActivity.class)) and stops the LoginActivity using finish().

The HomeActivity is a simple dashboard with notifications, overriding onCreate and onStart. Also it updates the some content icons using an AsyncThread.

The problem is this: If I hit the Home-Button to exit my app and then use the “recent” menu (holdpress the Android-Home Button) to reopen it, the back-key is ‘broken’ in my app: Pressing it will not finish the HomeActivity, but instead loop back to the same activity:

Meaning … HomeActivity <- HomeActivity <- HomeActivity <- HomeActivity …

I have not used any hacks to override the backstack or back key behaviour.
Anyone got a clue what the cause of this may be?

TIA, Patrick

  • 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-31T11:16:54+00:00Added an answer on May 31, 2026 at 11:16 am

    Maybe your login activity detects that login is complete and sends you immediately back to your home activity. That should be visible from the log (ActivityManager, START intent ...)

    In that case it may be a good idea to play with the backstack

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

Sidebar

Related Questions

I'm developing application for android. my application has very big size (APKfile) that is
I have an Android application (java) that was working fine when compiled with the
I want to write an android application that can parse files. I have figured
This question occured to me while programming a Android application, but it seems to
I've been programming Android in Eclipse for about a year now and I have
I'm programming an Android application allows to send messages between devices which are connected
I am looking to create a Nav Bar in my Android application that functions
I have been working on a Android Web Services program that uses a number
In my android application I have a dialog box in which the user inputs
I am a complete Android programming newbie. I have completed some tutorial examples like

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.