【发布时间】:2012-05-24 13:51:06
【问题描述】:
我在过去 2 天面临一个问题,我们如何在 Google Play 上上传大小超过 50Mb 的 .apk 文件,然后我找到了一种方法来从链接 http://developer.android.com/guide/market/expansion-files.html 上传带有 APK 扩展文件的 .apk 现在我最终成功了,但现在我遇到问题了如何从我的对象中的主扩展文件中读取文件,就像它是 .obb 格式一样
但现在可以使用主扩展文件中的 .mp3 文件,例如:
AssetFileDescripto assetFileDescriptor = zipResourceFile.getAssetFileDescriptor(
"assets/all_types_of_people1.mp3");
mediaPlayer = new MediaPlayer();
mediaPlayer.setDataSource( assetFileDescriptor.getFileDescriptor(),
assetFileDescriptor.getStartOffset(),assetFileDescriptor.getLength());
但是我们如何将主扩展文件中的图像使用到 WebView 中呢?
【问题讨论】: