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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T23:12:14+00:00 2026-05-25T23:12:14+00:00

Looked at android documentation and it appears that we don’t have the ability to

  • 0

Looked at android documentation and it appears that we don’t have the ability to know when an app shuts down. Whether it was explicitly by the user or automatically by the operating system.

Below is the onTerminate() documentation which is only available in the emulated scenario.

public void onTerminate()

Since: API Level 1

This method is for use in emulated process
environments. It will never be called on a production Android device,
where processes are removed by simply killing them; no user code
(including this callback) is executed when doing so.

Does anyone have any other approaches to report back when the user closes the application?

We need to know from a pilot/usability standpoint if we need to incorporate additional functionality into our future production app.

  • 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-25T23:12:15+00:00Added an answer on May 25, 2026 at 11:12 pm

    Not sure whether this is going to help you…

    In my app, I’m using Activity.onDestroy() to do the cleanup that I need. I have a couple of activities – and have onDestroy() in each of them.

    This is the closest I got to doing what I needed – and it actually works quite well.

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

Sidebar

Related Questions

So I have looked around and found out that android.R.styleable is no longer part
I have some documentation that doesn't have any intuitive examples for me http://developer.android.com/reference/android/nfc/tech/NfcV.html http://developer.android.com/reference/android/nfc/Tag.html
I have looked at the documentation for android.util.Log and I'm not sure exactly what
I am trying to implement Android c2dm. I have looked into documentation and seen
I've looked around for a physics engine that will play nicely with Android, but
I have looked everywhere about music on Android development. I have looked at the
What is the easiest to time execution in Android? I have looked around a
I have looked everywhere and it seems that it is currently not possible to
I looked in http://developer.android.com/reference/android/location/LocationManager.html#requestLocationUpdates%28long,%20float,%20android.location.Criteria,%20android.app.PendingIntent%29 and there is function requestSingleUpdate but in code in Eclipse
I'll preface this question with the note that I have looked at this similar

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.