Reading files from a ZIP file in your Android assets folder

后端 未结 3 1739
挽巷
挽巷 2020-12-15 08:46

I\'m reading files from a ZIP file that\'s located in my Android assets folder using ZipInputStream: it works, but it\'s really slow, as it has to read it seque

3条回答
  •  一个人的身影
    2020-12-15 09:17

    You can store the uncompressed files directly in assets (i.e. unpack the zip into assets/ folder). This way, you can access the files directly and they will be compressed anyway when you build the APK.

提交回复
热议问题