How to play flash using WebView in Android
This article gives an example of how Android uses WebView to play flash and judge whether to install Flash Plug-in. Share with you for your reference. The specific implementation method is as follows:
1、 Question:
Recently, I helped a classmate do a project and recorded some knowledge points intermittently. There is a WebView in a page to play SWF. If the flash plug-in is not installed in the system, the user must be prompted to install it in the market.
2、 Solution:
Let's make a demo, and the effect diagram is as follows: Figure 1:
Figure 2:
Figure 3:
First, layout the file, which is very simple:
Demo complete example code, click here to download.
WebView plays flash. There are still many compatibility problems. I don't recommend it.
I hope this article will be helpful to your Android program design.