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

  • Home
  • SEARCH
  • 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 4033894
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T11:54:14+00:00 2026-05-20T11:54:14+00:00

The app works fine when called afresh and used, but it doesn’t behave well

  • 0

The app works fine when called afresh and used, but it doesn’t behave well when user leaves it and the application is left running in the memory. Any attempt to switch back to it when it is running causes crash or black frozen screen. It might happen only when some time is left since it was opened first.
To solve this, I am thinking of placing a Quit button and used this to kill the app

case MENU_QUIT: int pid = android.os.Process.myPid();
        System.out.println("Process id:"+pid);
        android.os.Process.killProcess(pid); 
        return true;

But I believe this is not the right way to solve the problem. Could somebody suggest a better idea.

  • 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-20T11:54:15+00:00Added an answer on May 20, 2026 at 11:54 am

    Those kinds of crashes and freezes can happen if you don’t implement the process lifecycle callback methods correctly.

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

Sidebar

Related Questions

My app works fine in the simulator but when I run it on my
Have an ASP.net web app which works fine for a few days, but then
My app (winforms .net 2.0 / vs2008) works fine on my dev machine but
Everything works fine in development mode, but when I try to start my app
I have an app that works fine in iOS 4, but there is a
I have two NSTimers in my iPhone app. DecreaseTimer works fine, but TimerCountSeconds crashes
I use wshttpbinding in my service Config and message security. My app works fine
Markup works fine if I pull the code outside my app and test it,
i have a very small utilty app written in c# that works fine on
I have a situation where an app I'm writing works fine from the IDE

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.