Reading media files from a ZIP If you're using your expansion files to store media files, a ZIP file still allows you to use Android media playback calls that provide offset and length controls (such as and ). In order for this to work, you must not perform additional compression on the media files when creating the ZIP packages. For example, when using the zip tool, you should use the -n option to specify the file suffixes that should not be compressed: zip -n.mp4.ogg main_expansion media_files The Google Market Apk Expansion package includes a library called the APK Expansion Zip Library (located in /extras/google/google_market_apk_expansion/zip_file/). This is an optional library that helps you read your expansion files when they're saved as ZIP files. On Demand 5 8 1 9 Keygen Software there. Using this library allows you to easily read resources from your ZIP expansion files as a virtual file system. The APK Expansion Zip Library includes the following classes and APIs: APKExpansionSupport Provides some methods to access expansion file names and ZIP files: getAPKExpansionFiles() The same method shown above that returns the complete file path to both expansion files.
GetAPKExpansionZipFile(Context ctx, int mainVersion, int patchVersion) Returns a ZipResourceFile representing the sum of both the main file and patch file. That is, if you specify both the mainVersion and the patchVersion, this returns a ZipResourceFile that provides read access to all the data, with the patch file's data merged on top of the main file. ZipResourceFile Represents a ZIP file on the shared storage and performs all the work to provide a virtual file system based on your ZIP files. You can get an instance using APKExpansionSupport.getAPKExpansionZipFile() or with the ZipResourceFile by passing it the path to your expansion file. This class includes a variety of useful methods, but you generally don't need to access most of them. A couple of important methods are: getInputStream(String assetPath) Provides an to read a file within the ZIP file. The assetPath must be the path to the desired file, relative to the root of the ZIP file contents. Stylizer 6 Keygens.