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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T18:04:30+00:00 2026-06-03T18:04:30+00:00

In my app, I have a loading view that sets up the app by

  • 0

In my app, I have a loading view that sets up the app by going out to an API and bringing back some startup info to store. I store it temporarily in an Application class. An example of the type of data is lets say a list of servicable cities.

The flow is:

Loading View -> Main Menu -> etc etc

If I exit out of the app and come back, it usually starts with Main Menu view and hits onresume and everything is fine. But sometimes if I wait a while and the OS clears some memory maybe, I come back and it again goes to Main Menu but this time starts from scratch for that view by calling onCreate. But it seems like the application data is wiped.

I am just wondering why, if it is wiping the application data, is it not just starting up the app from scratch?

Is there some directive in the manifest I can make to make it do this? Keep in mind, I dont want it to restart the app when coming back into the app from a pause. Only when the OS has cleared the application data…

  • 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-03T18:04:37+00:00Added an answer on June 3, 2026 at 6:04 pm

    When the application is closed to free up memory the state of stored in your Application class is lost. You can save information that will persists even if you application gets closed in a few ways.

    One is to use shared preferences: Making data persistent in android

    The other is to use Bundles which is probably more along the lines of what you need: Saving Android Activity state using Save Instance State

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

Sidebar

Related Questions

I have a view based app that works well. (In other words, I'm not
My Setup: In my iPhone app, I have a loading View (which is an
I have a view that I'm loading, and my onCreate() method looks like this:
in my app i have a UIWebView and in that web view i am
In my app, I am loading a resource heavy view that takes about 1
I have a table view (view 1) with some cells that when selected let's
I have a html wrapper app loading all js, css and images from ipad
I have an android app which gives the user the option of loading a
Possible Duplicate: Error loading Active Record gem with sinatra app using RVM I have
In my APP. Need to use Lazy Loading, so I have to handler 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.