A flash video player is required.
The Flash plug-in can be installed only after Android2.2 and the Flash video can be played in WebView. The initial idea is to set a full-screen WebView for the Activity and then input a Flash Address. Later, I found some problems and made it clear.
1. directly call webView. loadUrl and input the Flash Address. On my custom machine, a white screen is sometimes displayed (no sound or image ).
2. Package the Flash Address into an HTML page, and then call webView. loadData to pass in the page data. This can be run on 2.x, but FrameLayout or RelativeLayout cannot place the logo I want to add in the upper left corner of the screen. Instead, the LOGO is placed under the Flash Player. Finally, we had to add a <br/> line break in front of the embed tag in the HTML page. In addition, it runs normally on 2.3, and the process crashes when it reaches 3.2. So this is not a general solution.
3. directly call the system browser and throw the flash Address. This is simple and violent, but it can really throw the problem.
Intent intent2 = new Intent (Intent. ACTION_VIEW, Uri. parse (flash_url ));
StartActivity (intent2 );
In addition, 100% white screen was found before hardware acceleration was enabled, which is much better after it was enabled.
Whether it is a program restart or a white screen, it is for a specific machine, the most important thing is to write down several more solutions.
Reference URL:
There is a difference between embedding an OBJECT element and an EMBED element in Flash in different browsers.
Http://www.w3help.org/zh-cn/causes/HO8001
Android WebView use: http://www.bkjia.com/kf/201110/108836.html