Reading Resource Files from my own APK in Android Native Environment

前端 未结 2 1505
误落风尘
误落风尘 2020-12-24 15:09

I\'m porting to Android. My existing project has a ton of resource files that I\'m porting into my Android project. I have them all in /res/raw/, and I would like to acces

2条回答
  •  清歌不尽
    2020-12-24 15:27

    Check out obb.h in the ndk.

    From docs/STABLE-APIS.html in the Android NDK:

    
            Direct (read-only) access to assets embedded in your .apk. or
            the Opaque Binary Blob (OBB) files, a new feature of Android X.X
            that allows one to distribute large amount of application data
            outside of the .apk (useful for game assets, for example).
    

提交回复
热议问题