Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Android™ Development

Reply
Highlighted
Visitor
Posts: 1
Registered: ‎04-17-2012
My Device: simulator
My Carrier: none

setPluginState and flash player

Hello,

 

I'm trying to transforme my .apk to .bar file. All work perfectly to publish my bar file but when I run my application all the features seem not supported. I'm in Playbook simulator.

 

To make short, my Android application contain a webview control that show a flash video (swf).

I know Flash is not support in simulator and when I call my web page with swf, blackberry browser app crash.

When I use my application with webview, my application doesn't crash.

 => That why I think Flash plugin is not enabled.

 

As necessary in Android application I try to add webview.getSettings().setPluginState( WebSettings.PluginState.ON );


But no more crash in my application. Smiley Very Happy

 

Have you an experience with this ?

 

-- All my webview parameters that work well with Android application --

m_webview = (WebView) this.findViewById(R.id.webview);
m_webview.getSettings().setJavaScriptEnabled(true);
//m_webview.getSettings().setPluginsEnabled(true);
m_webview.getSettings().setPluginState( WebSettings.PluginState.ON );
m_webview.getSettings().setLoadsImagesAutomatically(true);
m_webview.getSettings().setBlockNetworkImage(false);
m_webview.clearCache(true);

m_webview.setHorizontalScrollBarEnabled(false);
m_webview.setVerticalScrollBarEnabled(false);
m_webview.setScrollContainer(false);
m_webview.getSettings().setSupportZoom(true);
m_webview.getSettings().setDefaultZoom(ZoomDensity.FAR);
m_webview.getSettings().setRenderPriority(RenderPriority.HIGH);