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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T01:09:46+00:00 2026-06-02T01:09:46+00:00

I have been seeing errors come back from my application that it’s force closing

  • 0

I have been seeing errors come back from my application that it’s force closing after the system stop’s it and the user bring it back to the front at a later time.

I have some idea’s as to what is causing this but I would like to be able to reproduce this error before attempting to fix it.

Does anyone know a way to get the android system to behave like it needs the memory my application is using and close it so I can easily and continually reproduce this error?

  • 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-02T01:09:48+00:00Added an answer on June 2, 2026 at 1:09 am

    Using the Dev Tools app on your emulator, you can have the OS destroy an application as soon as it’s stopped.

    From the documentation:

    Immediately destroy activities

    Tells the system to destroy an activity as soon as it is stopped (as if Android had to reclaim memory). This is very useful for
    testing the onSaveInstanceState(Bundle) / onCreate(android.os.Bundle)
    code path, which would otherwise be difficult to force. Choosing this
    option will probably reveal a number of problems in your application
    due to not saving state. For more information about saving an
    activity’s state, see the Activities document.

    You can find this under Development Settings once you’re in the Dev Tools app. So, when running your application, you could just switch to another application (like clicking on the emulator’s hard phone button), and return to yours to test the destroy/create process.

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

Sidebar

Related Questions

I have been seeing code like this usually in the start of header files:
Q1: Is there something like too much ajax?? Explanation: I have been seeing programmers
Have been working on this question for a couple hours and have come close
I have been tasked with refactoring some components that used xmlbeans to now make
I've been seeing odd behaviour from my Maven 2.2.1 installation whilst doing war installs.
I have been assigned a project with a lot of poorly written code that
After debugging a CodeIgniter application that were installed into a new development environment, I
I have been working on a mysql database that I set up with phpmyadmin...
Starting around Friday night, and continuing as of this morning, we have been seeing
Overview: I have a Silverlight 4 app where I am seeing problematic behavior from

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.