title: Android OBB/ZIP loading (cocos2dx)
body: <p>I have a problem dealing with the APK expansions. On Java side, I could set up everything I supposed to set, but it seems I can't modify the code properly on c++ side.</p>
  
  <p>Inside the CCFileUtilsAndroid::getFileData function:</p>
  
  <pre><code>if (fullPath[0] != '/')
  {
     CCLOG("GETTING FILE RELATIVE DATA: %s", fullPath.c_str());
     pData  = CCFileUtils::sharedFileUtils()-&gt;getFileDataFromZip("/storage/sdcard0/Android/obb/com.example.package/main.1.com.example_package.obb", fullPath.c_str(), pSize);
  }
  </code></pre>
  
  <p>But the pData var is always null (if I'm right, this means that it failed to load). What am I missing guys?</p>
  
  <p>Many thanks in advance</p>
  
  <p>(ps: the package is there, and I'm using the right path)</p>