MIT App Inventor 2 - Kill other process

178 views
Skip to first unread message

Tomasz Bestecki

unread,
May 23, 2017, 2:40:21 AM5/23/17
to MIT App Inventor Forum
Hellow.
Will existing an extension that lets me kill another process?

Regards 
Tom

SteveJG

unread,
May 23, 2017, 8:11:47 AM5/23/17
to MIT App Inventor Forum
If you can code what is required in Java, you might be able to kill another process using an extension.  Can you program in Java?   If so you might be able to create an extension .... https://stackoverflow.com/questions/12036895/kill-another-application-on-android .

There is no existing extension that can do this.


Abraham Getzler

unread,
May 23, 2017, 9:08:05 AM5/23/17
to MIT App Inventor Forum
There exists a shell command extension, out of the Thunkable community.
Maybe it supports the kill command?

Rummage around in the extension collections in this FAQ ...

ABG

Abraham Getzler

unread,
May 23, 2017, 9:27:07 AM5/23/17
to MIT App Inventor Forum
Pavitra's shell extension is here ...

Shell command to list all processes (remembered from my unix days):
ps
ps -ef

See my attachments.

I was able to issue a  ps  command,
and identify process 283 as the AI2 Companion in the emulator.

Issuing a  kill 283  command killed the Companion.

Your mileage may vary.

ABG


process_283_ai2.PNG
shell_commands_extension.aia
ps.PNG
Reply all
Reply to author
Forward
0 new messages