Hmmm... Any good tutorials to do something like this? I am not to great with Java.
Basically, I have a few files in the lib/armeabi folder. One is called libarkactivity.so and it calls the other SO files when it needs it. I just need to pass a few arguments to it when called. Thats its own application created in C++. I am using my B4A as an interface for that app.
So, to call libarkactivity.so I would do something like this? :
import anywheresoftware.b4a.BA;
public class callark {
System.loadLibrary("libarkactivity");
Bundle b = new Bundle();
b.putString("name", (position < 0) ? "" : folderList.get(position));
b.putString("filename", (position < 0) ? null : filenameList.get(position));
b.putString("directory", baseDirectory);
intent.putExtras(b);
return null;
}
}
Like I mentioned, I am not a Java developer so this is a bit foreign to me. But basically I need to pass the arguments for name, filename and directory to that .SO app. Is that how I would do it?
Also, lets say that in some way what I said above makes sense, how do I expose it to B4A and run that .so app from within my B4A App? I hope all this is making sense for you guys. I know its a sort of loaded question/problem. Thanks.