1***@163.com
1***@163.com
  • 发布:2025-02-18 16:19
  • 更新:2025-02-18 17:53
  • 阅读:35

#插件需求# .so文件中数据获取

分类:uni-app

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);  
}  

}

2025-02-18 16:19 负责人:无 分享
已邀请:
II优选

II优选 - 定制插件开发-联系QQ:770104707

申请出战

要回复问题请先登录注册