V
V
Vyacheslav_Shilov2019-01-27 19:45:59
Java
Vyacheslav_Shilov, 2019-01-27 19:45:59

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

2 answer(s)
O
Orkhan, 2019-01-27
Hasanly @azerphoenix

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

1
101-s, 2019-02-01
@101-s

mb via BroadcastReceiver ?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question