Hello.
I have an AI app (App1) which open an existing app (App2)
After ew time i need to close App2.
I searched on differents topics but without really succes...
I tried to use :
Linux kïll command help and information with kïll examples, syntax, related commands, and how to use the kïll command from the command line.
ps (get PID of process)
kïll 19260 (kïll MIT Companion)
killall edu.mit.appinventor.aicompanion3 (kïll process by name )
but it seems i need to be rooted and i'm not
maybe this
Force Stop - Kill / Close Other Apps It can close/kill the background running app and it helps to free up the device ram and increase device performance something like this : All-In-One Toolbox: Cleaner – Apps on Google Play Blocks ...
Reading time: 1 mins 🕑
Likes: 15 ❤
but it is a paid extension and i don't know if it can kïll an app in foreground...
I tried this:
I was trying to create a process killing extension So whole code is here
import android.app.Activity;
import android.app.ActivityManager;
import com.google.appinventor.components.annotations.SimpleFunction;
import com.google.appinventor.components.runtime.AndroidNonvisibleComponent;
import com.google.appinventor.components.runtime.ComponentContainer;
import com.google.appinventor.components.runtime.util.YailList;
import java.util.ArrayList;
import java.util.List;
public class KillTask…
but without any succes...nothing happened
is someone have solution to do it ?
Taifun
April 14, 2024, 8:47pm
2
You might want to ask the author of that extension in the Niotron thread
Taifun
Unless root, you cannot do that...