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 pippo.gigi.com) 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?

see an example here

Taifun


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