prateek497
Lurker
I am trying to play swf file in android 4.0.3 tablet. Emulator is just showing some box and Device showing the black screen. I am using API 15 and the code is given below
I already add android:hardwareAccelerated = "true" in the manifest file and also checked after installing flash player in emulator as well as in device.
Code:
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
WebView wv = new WebView(this);
WebSettings webSettings = wv.getSettings();
webSettings.setJavaScriptEnabled(true);
webSettings.setPluginState(WebSettings.PluginState.ON);
webSettings.setPluginsEnabled(true);
wv.loadUrl("file:///android_asset/demo.swf");
setContentView(wv);
}
I already add android:hardwareAccelerated = "true" in the manifest file and also checked after installing flash player in emulator as well as in device.