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?
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?