java - Loading Flash in a Webview, I'm lost -


i'm trying load particular site : http://www.4maktoob.com/

in android webview, blank page. here code :

final webview mywebview = (webview)this.findviewbyid(r.id.webviewx1);         // set instance of systemuihider control system ui         // activity.         mywebview.getsettings().setjavascriptenabled(true);         mywebview.getsettings().setdefaulttextencodingname("utf-8");         mywebview.getsettings().setloadwithoverviewmode(true);         mywebview.getsettings().setusewideviewport(true);         mywebview.setwebchromeclient(new webchromeclient());         mywebview.setlayertype(view.layer_type_hardware, null);         mywebview.loadurl("http://www.4maktoob.com/"); 

1 - need adobe flash installed on device in order load website. won't load in webview unless have installed.

2 - if have adobe flash installed, need enable in webview follows (note: adobe flash support has been disabled in webview android 4.4 , up):

webview mywebview = (webview) findviewbyid(r.id.mywebview); mywebview.getsettings().setpluginstate(pluginstate.on); //this deprecated in api 19 

this allow flash plugin load in webview. however, flash pretty buggy , isn't guaranteed work on higher api levels. i've found flash doesn't work on 4.2 or 4.3.


Comments

Popular posts from this blog

php - SPIP: From Tag directly to an article -

jquery - isAjaxRequest always return false -

ruby on rails - In a controller spec, how to find a specific tag in the generated view? -