From app1 code kill other app via package name

I need to stop from execution (via code inside app1) an app2 actually active on smartphone
For example, via code block on app1, i need close app2 (package name that is actually loaded in memory and active
Is possible?
Wich code block?

If I were to attempt this, I would look for a shell extension in

and see if it has commands to list currently running processes,
and a kill process command.

Let us know how far you get?

1 Like

see an example here


Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by Taifun.

1 Like

Did you succed to do it ?
and how ?