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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T09:05:16+00:00 2026-06-13T09:05:16+00:00

Here are the scenarios. Scenario #1: My android app goes into the background because

  • 0

Here are the scenarios.

Scenario #1:
My android app goes into the background because a user hit the “home” button. The user then immediately comes back to the application and the app picks up at the last activity and retains it’s history stack and /onResume is called. Cool. All very expected behavior.

Scenario #2:
My android app goes into the background because a user hit the “home” button. The user waits a considerable about of time before coming back to the app. A new instance of the app the “Application” class /onCreate is called and the app goes back to the last activity that was on the screen and retains the history stack. This is exactly like Scenario #1 except the Application.onCreate has been called.

While Scenario #2 is true, it’s unexpected behavior to me. If a new instance of the app is launched because the OS wanted to reclaim memory, I would expect my “MAIN” launcher to be called, NOT the last activity and I would also not expect a history stack.

Question:
I want the behavior in Scenario #1, but in Scenario #2 when a new instance of the app is created how can I make it launch a new/fresh version of the app?

Thanks guys for all the help.

  • 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-13T09:05:18+00:00Added an answer on June 13, 2026 at 9:05 am

    Urgh…I can’t mark a comment as the answer and “small answers” are automatically converted to a comment. So here is random text. The answer is in the link below.

    Application restart – Activity Entry Point

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

Sidebar

Related Questions

I am planning on developing my specific voip app for android. Here's the scenario:
Here's my two scenarios. 1 - User opens app for the first time ever
Here's the scenario. When a user's login info is submitted, activityIndicator view is shown.
I just encountered the following situation. I have an Android app with a scenario
I'm working on file sharing on Google Drive in my android app. Here is
Here is my scenario: I need to distribute optional content packages for an Android
Here is my scenario: I want to create an android application which allows me
Scenario: Making an Android app using data from a website built with Wordpress. The
Here's my scenario: I have an Android service ( CoreService ) I use ServiceTestCase<CoreService>
I want my android app to get data from an online database. Here are

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.