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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T09:26:36+00:00 2026-06-08T09:26:36+00:00

I am fresh to android development.I have created a android application works properly.But my

  • 0

I am fresh to android development.I have created a android application works properly.But my issue is when i click the “home” button it goes to onPause() method and onStop() maintain activity state.Then i used some other application in my device.After 1 hour again i go to “home” click my application icon based on Activity life cycle it should goes to onRestart() method instead my app again go to “onCreate() method.I thought my application is killed by System because it’s no longer visible to the user.

So can you all help me to keep the app activity state alive.

Thanks….

  • 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-08T09:26:38+00:00Added an answer on June 8, 2026 at 9:26 am

    It depends on lot of factors on why an application is killed when in background for a long time.

    • Memory requirement / consumption being the first in that, if you are launching too many applications after you have sent your application to background then its obvious that your application will be killed by the OS to provide memory for other applications.

    • Second we have lot of apps in the market now a days which will terminate the Apps to increase the battery life, so check if you have any such apps installed in your device because of which your application will require to go through onCreate() again.

    Check this to get an idea on when the app will be killed.

    You might also be interested in this if you want to know further.

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

Sidebar

Related Questions

I'm pretty fresh to database handling, but now completely without experience. However, I have
I am trying to follow these instructions: http://source.android.com/source/downloading.html I have set up a fresh
I am creating a fresh Mono for android application using http://xamarin.com/monoforandroid I selected Mono
I am fresh to android, and i tried to connect JDBC to my application
i have a big problem with a layout in my Android Application. I have
I created a sencha touch 2/phonegap app that works fine on android, and needed
Does switching activities in Android start a fresh JVM? It seems like each activity
fresh to objC and cocos2d :) i'm following learn cocos2d game development with iOS5,
in my android app i have an ui-update-thread that keeps all my views up-to-date.
How to stop application from running in background in android? I want my application

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.