Where Is The Samplezipfileprovider Class?
At the bottom of the section in Google's dev guide on expansion files (http://developer.android.com/guide/market/expansion-files.html#ZipLib) there is the following text. APEZProv
Solution 1:
It turned out that my ZipFileContentProvider was sufficient. For those coming across this problem. Here is what I did to use the content provider for the VideoView.setVideoURI() method.
Add provider to Manifest.
<providerandroid:authorities="com.myCompany.myAppName.provider.ZipFileContentProvider"android:name=".ZipFileContentProvider"></provider>
In video player class:
finalStringAUTHORITY="com.myCompany.myAppName.provider.ZipFileContentProvider";
finalUriCONTENT_URI= Uri.parse("content://" + AUTHORITY);
video = (VideoView) findViewById(R.id.video);
video.setVideoURI(Uri.parse(CONTENT_URI + "/" + videoFileName + ".mp4"));
Post a Comment for "Where Is The Samplezipfileprovider Class?"