Android Question Problems with webview and Flash Player

Alberto Iglesias

Well-Known Member
Licensed User
Longtime User
Erel,

Look this video, in the normal browser of android (4.0.4) is working very well, play normally but when I embedded in a webview (putting in design mode or creating webview programmatically) is showing only a gray screen.

Why is this happening? Can you help me?

My Code is:

WebView1.Tag = "WebTV"
rr.Target = WebView1
rr.Target = rr.RunMethod("getSettings")
rr.RunMethod2("setPluginsEnabled", True, "java.lang.boolean")
WebView1.JavaScriptEnabled = True
WebView1.ZoomEnabled = True
WebView1.LoadURL(pUrl)
WebView1.Visible = True



TV URL (pUrl) :
http://www.redetv.com.br/aovivo/pla...rnapcdn.net/REDETV/live_1&rtmp.subscribe=true
 

Alberto Iglesias

Well-Known Member
Licensed User
Longtime User
Hello Giga,

I´m try put flash in webview in both options, in design mode and create programmaticly but not work...

The ONLY way I got this work is putting this line in manifest


SetActivityAttribute(main, android:hardwareAccelerated, "true")

Now with this is working perfectly!
 
Upvote 0

Theera

Well-Known Member
Licensed User
Longtime User
Hi Alberto or others,
Do I must install the program as swf viewer in my device before? Thank you inadvance.
 
Upvote 0

Theera

Well-Known Member
Licensed User
Longtime User
Hi Alberto or others,

Please to check my source code, Which the part of the source code is wrong? It can run,but it cann't shown.
 

Attachments

  • TestWebViewWithFlash.zip
    6 KB · Views: 613
Last edited:
Upvote 0

Alberto Iglesias

Well-Known Member
Licensed User
Longtime User
Upvote 0
Top