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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T19:58:32+00:00 2026-06-09T19:58:32+00:00

As it is said in the Dev Guide Activities could be restored after the

  • 0

As it is said in the Dev Guide Activities could be restored after “the App process is killed” and “User navigates to the Activity”. First of all, I have never seen such thing happened. It doesn’t seem that I can “navigates back” to an Activity when its process is killed, the Activity is simply gone from the stack after the process is gone.

If such thing is to happen, how exactly it will happen?

And I saw a weird but good thing is that:
There is one Activity A1 which starts Activity A2 of another App. Now A2 is the foreground activity. When memory gets low, at least on emulators(where I can easily eat up the RAM), A2 will be killed instead of A1.

What I fear is something like this for example:
My App have two Activities on the stack, and we call them A0 and A1. And A1, again, launched Activity A2 of another App. When A0 was about to launch A1, it gives A1 a reference to a data object D. Now if process for A0 and A1 is killed while A2 is in foreground, D is lost, too. When A2 has finished, it seems at least A1 will need to be restored. And thus A1 will have to handle the restoration of D. And what’s more A1 will have to find a way to tell the still-dead A0 the reference to the restored D. This is complicate or I have walked the wrong way?

  • 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-09T19:58:33+00:00Added an answer on June 9, 2026 at 7:58 pm

    The system will do anything it can to keep the foreground app alive.

    The Intent that was used to launch the activity is saved by the system when the process is about to be killed.

    This way, once the user returns into the app which has been killed, then the app is restored and the same Intent is fired to launch the activity including all the extras that it might have.

    This means any data you pass into the Intent to launch an activity, will still exist when the activity is restored.

    You might not notice it, but Android does kill and recreate process on a day-to-day usage, and thats the whole point of seamless multitasking the platform offers.

    You should always test your app with the “Don’t Keep Activities” option on in the “Development” settings.

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

Sidebar

Related Questions

On the manual page; http://dev.mysql.com/doc/refman/5.0/en/mysql-insert-id.html It is said that Returns the value generated for
Title said it all. Some context: I got a search mechanism - search view,
That's what Apple said - the app got crashed for them against iPad 3,
I have created a painting app and when the user want's to save his
First of all, I am sorry if this question doesn't belong to SO since
I am new to Iphone Dev, seems doesn't really understand delegate things. Could we
I thought I'd experiment a bit with Scott Guthrie's latest post on code-first dev
I am reading concurrency programming guide in ios dev site when move to the
As the title said: I would like to find all elements that are on
I allow a user to search a listbox which narrows results contained in said

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.