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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T15:09:34+00:00 2026-06-07T15:09:34+00:00

I have my tournament maker app installed on my phone version 2.2 and a

  • 0

I have my tournament maker app installed on my phone version 2.2 and a tablet version 4.0.3.

When I launch the app from my phone and begin an activity, it doesn’t get destroyed and recreated when I press the home button and then launch it again (which is what I want).

When I do the same thing from my tablet, the activity seems to get destroyed and re-created, messing up the order of the brackets and who has won or not

I’ve tried to override these two methods

public void onSaveInstanceState(Bundle savedInstanceState) 

public void onRestoreInstanceState(Bundle savedInstanceState) 

to control what happens and hopefully restore the state that it was in before, but first I want to know if its possible to prevent the destroy and recreate stages from happening.

This is similar to when one wants to prevent an activity restart when a screen orientation change occurs by putting android:configChanges="orientation|keyboardHidden" in the manifest of an activity.

  • 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-07T15:09:35+00:00Added an answer on June 7, 2026 at 3:09 pm

    As soon as an activity goes to background, the system can destroy it at any time. Overriding onSaveIntanceState()/onRestoreInstanceState() is the right thing to do. You also need to deal with a simple case of pushing the Back button: your activity will also bi destroyed.

    Having said that, it is strange that your activity is destroyed as soon as you push Home button. May be you have “Don’t keep activities” option checked in Settings->Developer options on the 4.0.3 device?

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

Sidebar

Related Questions

I have a method that returns data from a tournament system I am creating.
I have an application that runs through the rounds in a tournament, and I
Have a procedure which looks like Procedure TestProc(TVar1, TVar2 : variant); Begin TVar1 :=
I have a poker blind timer Silverlight app that is losing time (after running
I'm making a tournament manager in CakePHP 1.3 and I have a tournament controller
I have an applications that stores players ratings for each tournament. So I have
I have this structure models class Tournament < ActiveRecord::Base AGES = [5u, 6u, 7u,
I have a Tournament model that needs 0, 1, or 2 contacts. I created
So I have a Results table for a Tournament where multiple matches might occur
In my application I have an administrator who can create Tournament objects. When the

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.