uniapp vue3开发的安卓项目,做的是离线版本后端给的是.so文件获取存储数据,后端给的例子是
class Quran {
// This declares that the static hello
method will be provided
// a native library.
private static native int add(int a, int b);
private static native String section(String path, String passwd, String sid);
static {
// This actually loads the shared object that we'll be creating.
// The actual location of the .so or .dll may differ based on your
// platform.
System.loadLibrary("quran_sdk");
}
// The rest is just regular ol' Java!
public static void main(String[] args) {
int output = Quran.add(1,1);
System.out.println(output);
String text = Quran.section("/home/kztxt/quran/data", "1234567890", "1");
System.out.println(text);
}
}
II优选
原生插件做起
2025-02-18 17:53
1***@163.com (作者)
回复 II优选: 有偿付费
2025-02-18 19:33
II优选
回复 1***@163.com: 加我
2025-02-19 09:16