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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T06:11:16+00:00 2026-06-14T06:11:16+00:00

This discussion (in the comments) raised an interesting question : What is the result

  • 0

This discussion (in the comments) raised an interesting question :

What is the result of calling exit in an Android app (with regards to the android life-cycle) and can that damage the OS ?

  • 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-14T06:11:17+00:00Added an answer on June 14, 2026 at 6:11 am

    What is the result of calling exit in an Android app (with regards to the android life-cycle)

    The Android documentation for System.exit() says that it “Causes the VM to stop running and the program to exit.” I just tried it and it seems to kill the process for the app that called System.exit().

    In the Android Developers thread named Activity.finish() x System.exit, someone corroborates that “System.exit() kills your entire process.”

    Dianne Hackborn aka hackbod goes further “To be clear: using System.exit() is strongly recommended against, and can cause some poor interactions with the system. Please don’t design your app to need it.”

    and can that damage the OS ?

    It should not damage the OS. Android will just let your app kill its process, not any other process on the system. It will keep the rest of the system running while your app ends.

    I also verified this by running two applications and making one of them call System.exit(). The other was unaffected.

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

Sidebar

Related Questions

This question arose from the discussion in the comments of this answer . First,
Following on from a discussion which got going in the comments of this question
As a followon to the discussion in the comments of this answer , should
I'm referring to this question, and especially the comments to the first answer from
I want to have a comments section in my app that looks like this:
Background/context As schema.org is relatively new, perhaps this question will promote more discussion than
In the discussion amongst the comments in this libgit2sharp issue it was highlighted I
Following this discussion , I've encountered a bad access issue; A loop has several
I was recently reading this discussion at SO where somebody commented that not all
We were having this discussion wiht my colleagues about Inner assignments such as: return

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.