title: Unable to create a valid .obb file
body: <p>I am on the verge of creating a OBB file just for adding my video which is around 80 MB. I am trying to create a obb file via Win RAR with the naming convention <code>main.2.my.package.name.obb</code> and I am indeed using the mentioned <code>Store</code> format for zipping my file. <a href="http://prntscr.com/86fvff" rel="nofollow noreferrer">A screenshot</a> -  . When I try to run the following code </p>
  
  <pre><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 is ", "" + zipFileName);
          uri = Uri.parse(zipFileName);
  
  
  public class ZipFileContentProvider extends APEZProvider {
  
      @Override
      public String getAuthority() {
          return "my.package.name.provider";
      }
  }
  </code></pre>
  
  <p>The one in the manifest goes like :</p>
  
  <pre><code>        &lt;provider
              android:name="my.package.name.ZipFileContentProvider"
              android:authorities="my.package.name.provider"
              android:exported="false"
              android:multiprocess="true" /&gt;
          &lt;meta-data
              android:name="mainVersion"
              android:value="1"&gt;&lt;/meta-data&gt;
  </code></pre>
  
  <p>So, I try to test it by placing the generated OBB file in my <code>sdcard/Android/obb</code> but I get a <code>IllegalStateException</code>
   while trying to access the file. <a href="http://prntscr.com/86fts6" rel="nofollow noreferrer">A screenshot</a>. </p>
  
  <p>And yes, I have tried to create the obb file via JOBB tool available in Android tools but I am one of the unlucky person who gets a error while trying to create a jobb file. I came to know that its a existing bug in Android reported by Google - <a href="https://code.google.com/p/android/issues/detail?id=61344" rel="nofollow noreferrer">see here</a>. I've been sitting on this for like almost a decade now.</p>
  
  <p><strong>Bottomline</strong> : JOBB doesnt work, thanks to Google and WinRAR seems a bit messed up. I've got absolutely no idea how to proceed further.</p>
  
  <p><strong>My reference links include</strong> :
  <a href="https://stackoverflow.com/questions/31697162/illegalstateexception-in-videoviews-mediaplayer-prepareasync-from-expansion-f">Link 1</a>
  <a href="https://stackoverflow.com/questions/18929273/how-to-create-obb-file-as-main-apk-expansion-file-using-jobb-tool">Link 2</a>
  <a href="https://stackoverflow.com/questions/16831273/is-there-a-way-to-get-a-url-to-a-specific-file-in-android-expansion-file">Link 3</a></p>
  
  <p>I <strong>STRONGLY</strong> and <strong>SERIOSULY</strong> presume that the <code>IllegalStateException</code> occurs only due to the fact that the obb file is corrupted or at least that's what I came to know. </p>
  
  <p>Can someone please save me another decade ? </p>
  
  <p><strong>P.S :</strong> I am indeed using my real package name, just in case if someone thinks that they are insanely filled with wisdom.</p>
  
  <p><strong>EDIT 1 :</strong> I just tested my app via alpha testing but the same error persists. Sad, indeed !!</p>
  
  <p><strong>EDIT 2 :</strong> I was doing a idiotic mistake of saving the file with an extension of obb while zipping it where I was supposed to save the file in zip format and upload it in the Play Store which will do the conversion for me. I did so but still facing the same issue. </p>
  
  <p><strong>EDIT 3 :</strong> I successfully created a obb file via the JOBB tool from another PC in which the tool seemed to work fine and I tried uploading that obb file. Now when I download it throws me a new error now which is <code>NullPointerException</code> at <code>return mAPKExtensionFile.getAssetFileDescriptor(path)</code>. The path is very much right inside the obb file, I guess that its not able to locate the actual obb file itself ! Finally, I'm like "Now I may have Google's permission to die !!" </p>