Android Question How to stop other app?

amorosik

Expert
Licensed User
I have an app that receives commands from a pc and starts other packages on the smartphone
If I try to use it with some programs, for example AnyDesk, the program screen that opens depends on whether the app is already active or not
And from the AnyDesk screen that starts depends on whether I will be able to connect or not, so it is important that Anydesk is turned off
Only in this way can I hope that, once started, it will show the first page, and the pc will be able to connect
So I would like to send two commands, the first to shut down AnyDesk, the second to start it
The question is: how to turn off an app (not under my control) currently running on the smartphone?
 

DonManfred

Expert
Licensed User
Longtime User
The question is: how to turn off an app (not under my control) currently running on the smartphone?
It is not possible without the device being rootet or your app is running as a kiosk-app. You can not control other apps due to android permission system.
If the other app provides and Intent to stop it you can use this. I fear no such - documented - Intent exists.
 
Upvote 0
Top