I some files that exceeds that playstore 50MB limit. So I looked up Google and learned that I can use Expansion Files
to bypass this limit. I made the expansion file with my files and I can run the mp3 files fine using the AssetFileDescriptor
by looking up some examples. How do I get the path to the file so I can set it in the webview
?
I tried using InputStream
but I was lost:
ZipResourceFil expansionFile = APKExpansionSupport.getAPKExpansionZipFile(this,1,0);
InputStream fileStream = expansionFile.getInputStream('flash/main.swf');
how do I get the path to the flash here?
How do you load a swf file in webview from expansion file?
Adobe discontinued support for Flash on Android a few years ago.
How do I get the path to the file so I can set it in the webview?
There is no path, because there is no individual file for the expansion ZIP entry. If you want there to be a file, you need to copy the data from the expansion ZIP to somewhere, such as on internal storage.