Im looking for a way to create an aix extension using java but I cant seem to find how
After reading some of community solutions, some of you recomended ide.niotron. The problem is that the site is broken.. I basically get database error when I try to make an account and mostly its unresponsive and I fail to
After that I I have decided to use EIDE app from playstore
[FREE] EIDE - Extension IDE create your extension on Android
But after compiling to aix i cant import it to app inventor
Basically it says its impprted successfuly but it doesn't show up in the extensions list so I can drag it
Here is my code
package termuxRunPermition;
import android.app.Activity;
import android.content.Context;import com.google.appinventor.components.annotations.;
import com.google.appinventor.components.runtime.;@DesignerComponent(
description = "Requests Termux RUN_COMMAND permission",
nonVisible = true,
version = 1
)
@SimpleObject(external = true)
@UsesPermissions(permissionNames = "com.termux.permission.RUN_COMMAND")
public class termuxRunPermition extends AndroidNonvisibleComponent {
private final Activity activity;
private final Context context;public termuxRunPermition(ComponentContainer container) { super(container.$form()); this.activity = container.$context(); this.context = container.$context(); } @SimpleFunction(description = "Request Termux RUN_COMMAND permission") public void RequestPermission() { activity.requestPermissions( new String[]{"com.termux.permission.RUN_COMMAND"}, 12345 // Arbitrary request code ); } @SimpleEvent(description = "Called when permission result is received") public void PermissionResult(boolean granted) { EventDispatcher.dispatchEvent(this, "PermissionResult", granted); }
}
Im basically trying to add termux run permission to app inventor so I can execute commands in a new termux window like top, echo, or anything like that