Tecnologia do Blogger.
RSS

Re: [androidbrasil-dev] Web View android 2.3

Infelizmente um app com base no Android WebView + javascript somente no 4.x não tem jeito


Em 25 de março de 2014 11:59, Junior Celistre <junioorcelistre@gmail.com> escreveu:
Bom estou desenvolvendo um app, em uma área eu abro um link que seria uma stream do ustream estou tendo problemas para abrir ela no android 2.3, do 4.0 para frente consigo abrir sem dificuldades já tentei quase tudo se alguém tiver alguma dica.

wb = (WebView) findViewById(R.id..);
wb.setLayerType(View.LAYER_TYPE_HARDWARE, null);

if (Build.VERSION.SDK_INT < 8) {
            wb.getSettings().setPluginsEnabled(true);
        } else {
            wb.getSettings().setPluginState(PluginState.ON);
        }
wb.getSettings().setJavaScriptEnabled(true);
wb.getSettings().setRenderPriority(RenderPriority.HIGH);
wb.getSettings().setCacheMode(WebSettings.LOAD_NO_CACHE);
wb.setWebChromeClient(new WebChromeClient() {
});
wb.loadUrl("URL"); 

--
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • RSS

0 comentários:

Postar um comentário