Is there any possibility to create a listener for closing another process?
Let’s say I want to know when the process com.android.test.app isn’t running anymore.
By the way, I don’t want to use threads for listening for current running apps.
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.
From what I know, there is no other way supported by Android as yet.
I’d like to point out that getRunningAppProcesses() checking processes with
IMPORTANCE_EMPTYorIMPORTANCE_BACKGROUNDis one of doing this but as per the documentation :