I need to read files from an EXPANSION FILE.
In the first Log in which I print expansionFile is working perfectly, ie I was able to read the zip file, but when trying to access the files from inside the zip as it guides the documentation link file returns null
ZipResourceFile expansionFile = null;
try {
expansionFile = APKExpansionSupport.getAPKExpansionZipFile(context,
2, 1);
} catch (IOException e) {
e.printStackTrace();
}
Log.d("DEBUG", expansionFile + "expansionFile");
AssetFileDescriptor fd = expansionFile.getAssetFileDescriptor("enterprise/config.json");
Log.d("DEBUG", fd + "FILE");
The zip file has the following organization
/enterprie
/0
/config.json
Does anyone know the problem?