I have seen at least 20-30 posts on SO regarding this but still haven't got the answer. Can we load an swf file in Android webview or not? I have an HTML page with swf object embedded in it. All HTML content loads except the swf file. I have also installed the Flash Player from Adobe archives on Android device(2.3) but it doesn't work.

In this post, it doesn't work. But the same method is working on this post. Why?

My aim is to run a sencha app on Android device containing the above HTML file, but first I'm unable to load that HTML file with swf content using a native app.

有帮助吗?

解决方案

Short answer: when Flash was supported on Android, it required to enable plugins support on the WebView. But it's not supported anymore since Android 4.1 (Jellybean). And Android 4.4 devices use a new WebView implementation which is garanteed to not support any plugin.

If you want this to work, you have to install Flash on an older device with Android 4 or lower.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top