I have This application that “runs it the background” well its supposed to. the problem is when I get a phone call the application forcecloses. How would I get it to truly run in background?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
I would use a service if you want a long running application to run in the background. Use the activity to start and stop it. Then when the phone activity is launched, your application will still be running. Service lifecycles do not depend on the Activity being in the foreground