Recently I updated an APK and chose the option to reuse the expansion file (this file contains videos).
Old Version
1(1.0.0) -> main.1.br.com.myapp.obb
New version
2(1.0.1) -> selecionei o mesmo
After propagating in the store (Google Play), the application has updated normally, downloaded and recognized OBB. But when I play the video, the application ends with the error below:
E/AndroidRuntime(12752): java.lang.NullPointerException
E/AndroidRuntime(12752): at com.android.vending.expansion.zipfile.APEZProvider.openAssetFile(APEZProvider.java:182)
Update
I've added some of the files to help identify the error.
ProviderVideoZipUri.java
public class ProviderVideoZipUri extends APEZProvider {
@Override
public String getAuthority(){
return "br.com.appname.provider.ProviderVideoZipUri";
}
}
AndroidManifest.xml
<provider
android:name="br.com.appname.provider.ProviderVideoZipUri"
android:authorities="br.com.appname.provider.ProviderVideoZipUri"
android:exported="false" />
Has anyone ever had this problem?
Thank you very much