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

The Archive Base Latest Questions

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

When my activity is destroyed by OS because of memory (for example when a

  • 0

When my activity is destroyed by OS because of memory (for example when a phone call is interrupting it), then when my activity tries to start again, it doesn’t come back to any expected call back except onDestroy(), how can I restore my activity again.

Note: – it doesn’t go back to neither onCreate() nor onRestoreInstanceState().
– my activity contains a thread.

Edit: isFinishing() returns false at onPause() (before interruption) and it returns true at onDestroy() when come back again (after interruption is gone).

  • 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-07T00:35:00+00:00Added an answer on June 7, 2026 at 12:35 am

    My program needs only to set “No History” option of my activity to “false”

    • at Manifest, Application, Application nodes, then select my activity-

    after that I found it doesn’t call onDestroy() when try to come back again to my activity, it calls onResume() as expected. and also set “config changes” to “orientation”.

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

Sidebar

Related Questions

Is it possible that my activity is not destroyed when i press the back
I have an activity defined as below: <activity android:name=com.example.ui.HomeActivity android:alwaysRetainTaskState=true/> A strange thing is
I have an activity that may have threads running when the user presses back
Consider that activity is destroyed and onDestroy was fired. Can I be sure that
What I'm trying to achieve: Reduce memory usage of activity that is no longer
This is my first activity and when I press the back button in the
In the event that an Activity has been destroyed, but an AsyncTask still has
Activity GameActivity : The page that's opened when the application is first opened. Activity
This activity is used for login. It post the username and password to a
My Activity creates an AsyncTask that loads data from a file and updates 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.