勤恳飞鸟

文章
2
资源
0
加入时间
3年1月7天

JNI怎样访问Asset 目录下文件Asset 不是普通的文件,是打包、压缩到APK的解决方法:APP相关的cache 和files最终解决方案:

问题诉求:native 库函数的输入参数是个文件的路径,如果把文件放到APK的 asset路径下,该怎样得到?Asset 不是普通的文件,是打包、压缩到APK的There is no "absolute path for a file existing in the asset folder". The content of your project'sassets/folder are packaged in the APK file. Use anAssetManager