Android读取资源
09 Mar 2017- 读取Android母包(.apk)中资源:
InputStream fileStream = context.getAssets().open(res_name);
- 读取Android OBB中资源
// Get a ZipResourceFile representing a merger of both the main and patch files
ZipResourceFile expansionFile = APKExpansionSupport.getAPKExpansionZipFile(appContext, mainVersion, patchVersion);
// Get an input stream for a known file inside the expansion file ZIPs
InputStream fileStream = expansionFile.getInputStream("assets/" + res_name);
参考: APK扩展文件及使用