Answer the question
In order to leave comments, you need to log in
How to check if another application is running and build a condition based on that?
You need to write the following. Running Application A determines if Application B is running. If Application B is running, then something happens based on that. The problem is that I don't know how to implement this condition..
Answer the question
In order to leave comments, you need to log in
Hello!
The question interested me too. And so a Google search gave this:
https://stackoverflow.com/questions/6064137/can-an...
Get a list of installed applications through the PackageManager
And then check if the desired application is running through the ActivityManager
Keywords for Google - android check if another app is running
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question