To incorporate the contents of a .zip
file seamlessly into our filesystem, we need to read the archive contents and be able to access each file individually. Since we are developing our own file I/O library, we use the iIStream
interface to access .zip
files. The NDK provides a way to read the .apk
assets from your C++ application (see usr/include/android/asset_manager.h
in your NDK folder). However, it is only available on Android 2.3, and will make debugging of file access in your game more complex on a desktop computer without an emulator. To make our native code portable to previous Android versions and other mobile operating systems, we will craft our own assets reader.
Android applications are distributed ...
No credit card required