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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T17:41:11+00:00 2026-05-27T17:41:11+00:00

i created an App the problem with it is when i exit the app

  • 0

i created an App the problem with it is when i exit the app using finish() in OnDestroy() the app still running in the background how to exit that when i exit the App from the menu

  • 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-05-27T17:41:12+00:00Added an answer on May 27, 2026 at 5:41 pm

    Android is quite complex regarding management of app lifecycle. Actually it manages activity lifecycles. You may want to read this – it is REALLY helpful in understanding the most important aspects of it. http://developer.android.com/reference/android/app/Activity.html

    But be aware any of your activity classes may exist in memory even AFTER the system has called onDestroy on your activity. Therefore your app might not start the same way as it has done initially. At least the static variables of the activity might still have the same value as when the activity was finished and even destroyed!

    All you should do is maximally call finish() and take care of your activity variables, especialy the static ones!

    Even calling finish() might not really be necessary, since going back on the last activity does the same.

    ps as a small hint, put log into these system methods like finish, onDestroy,… and all the others to better understand what is going on. I am sure you will be suprised 🙂

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

Sidebar

Related Questions

I've created an app that interacts with a SOAP service using java WS. I
I have successfully created an app that reads from a bundled .plist file and
I'm using VS2008 and I created an app with a login screen. That screen
I have created a Server app that receives sound from client, i then broadcast
I have created an app that uses NSTimer, which gets triggered each second. My
I have a c# .net app. So I created a notifyIcon that sits in
I have created a small app in C using WinAPI and I have a
I am running cherokee to serve a django app using uwsgi. I have been
I've created an ad hoc distribution build for my iPhone app using Xcode 4.1.
I'm doing an app that loads the contents of viewControllers using NSThread while is

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.