如何创建.obb文件作为jobb工具主要APK扩展文件? [英] How to create .obb file as main apk expansion file using jobb tool?

查看:2051
本文介绍了如何创建.obb文件作为jobb工具主要APK扩展文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有80 MB的apk。所以我不能够把它上传在谷歌Play商店。我用Google搜索了很多,发现我们要创建.obb文件作为主膨胀文件。

i have apk of 80 mb. so i am not able to upload it on google play store. i have googled a lot and found that we have to create .obb file as main expansion file.

另外我发现,我们可以使用jobb工具,它里面创建.obb文件 sdk->工具> jobb.bat 但不幸的是它关闭后立即自行启动

also i have found that we can create .obb file using jobb tool which is inside sdk->tools>jobb.bat but unfortunately it close just after start itself.

让我失去了一些东西?

推荐答案

我用Google搜索,发现我们shold不得不作出的.zip与 0%(没有COM pression)即提及 http://developer.android.com/google /play/expansion-files.html

i have googled and found that we shold have to make .zip with 0% (No compression) that is mention in http://developer.android.com/google/play/expansion-files.html

提示:如果你在打包的媒体文件成ZIP,你可以使用这些文件的媒体播放与通话偏移量和长度的控制(如MediaPlayer.setDataSource()和SoundPool.load() )无需解压您的邮递。为了这个工作,你不能创建ZIP包时,执行上的媒体文件的其他COM pression。例如,使用压缩工具时,你应该使用-n选项来指定文件后缀不应该是COM pressed: 拉链-n .MP4; .OGG main_expansion media_files

Tip: If you're packaging media files into a ZIP, you can use media playback calls on the files with offset and length controls (such as MediaPlayer.setDataSource() and SoundPool.load()) without the need to unpack your ZIP. 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

如何用winrar制作0%COM pression拉链?

在这里看到的COM pression方法

here see the compression method

所以我们应该要上传这个压缩在游戏商店。

so we should have to upload this zip in play store.

,所以你并不需要使用 ZipHelper.java

so you not need to use ZipHelper.java

只是简单地使用

ZipResourceFile expansionFile=null;

            try {
                expansionFile = APKExpansionSupport.getAPKExpansionZipFile(getApplicationContext(),3,0);

                     AssetFileDescriptor fd = expansionFile.getAssetFileDescriptor("test.mp4");
                     MediaPlayer mPlayer = new MediaPlayer();
                     mPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC);
                     mPlayer.setDataSource(fd.getFileDescriptor(),fd.getStartOffset(),fd.getLength());
                     mPlayer.prepare();
                     mPlayer.start();

            } catch (IOException e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
            }

这篇关于如何创建.obb文件作为jobb工具主要APK扩展文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆