android - Unable to create a valid .obb file -
i on verge of creating obb file adding video around 80 mb. trying create obb file via win rar naming convention main.2.my.package.name.obb
, indeed using mentioned store
format zipping file. a screenshot - . when try run following code
zipfilecontentprovider contentprovider = new zipfilecontentprovider(); string contentpath = "content://my.package.name.provider"; file root = environment.getexternalstoragedirectory(); string exp_path = file.separator + "android" + file.separator + "obb" + file.separator; string path = root.tostring() + exp_path + getpackagename() + file.separator + "main.2.dmcc.mea.golive.golive.obb"; string zipfilename = contentpath + path + "/" + "video/app_video.mp4"; log.e("the uri ", "" + zipfilename); uri = uri.parse(zipfilename); public class zipfilecontentprovider extends apezprovider { @override public string getauthority() { return "my.package.name.provider"; } }
the 1 in manifest goes :
<provider android:name="my.package.name.zipfilecontentprovider" android:authorities="my.package.name.provider" android:exported="false" android:multiprocess="true" /> <meta-data android:name="mainversion" android:value="1"></meta-data>
so, try test placing generated obb file in sdcard/android/obb
illegalstateexception
while trying access file. a screenshot.
and yes, have tried create obb file via jobb tool available in android tools 1 of unlucky person gets error while trying create jobb file. came know existing bug in android reported google - see here. i've been sitting on decade now.
bottomline : jobb doesnt work, google , winrar seems bit messed up. i've got absolutely no idea how proceed further.
my reference links include : link 1 link 2 link 3
i strongly , seriosuly presume illegalstateexception
occurs due fact obb file corrupted or @ least that's came know.
can please save me decade ?
p.s : indeed using real package name, in case if thinks insanely filled wisdom.
edit 1 : tested app via alpha testing same error persists. sad, indeed !!
edit 2 : doing idiotic mistake of saving file extension of obb while zipping supposed save file in zip format , upload in play store conversion me. did still facing same issue.
edit 3 : created obb file via jobb tool pc in tool seemed work fine , tried uploading obb file. when download throws me new error nullpointerexception
@ return mapkextensionfile.getassetfiledescriptor(path)
. path right inside obb file, guess not able locate actual obb file ! finally, i'm "now may have google's permission die !!"
Comments
Post a Comment