Tecnologia do Blogger.
RSS

[androidbrasil-dev] loadDataWithBaseURL não carrega aquivo javascript

Olá galera,

Estou com o seguinte problema:

O código abaixo não funciona no android 4.1.2 mas funciona no 2.3.6, alguem tem uma ideia do pq?

WebView wv = (WebView) findViewById(R.id.webView1);
wv.setWebChromeClient(new WebChromeClient());
wv.getSettings().setJavaScriptEnabled(true);
wv.loadDataWithBaseURL("file:///android_asset/",
"<html><head><script type='text/javascript' src='teste.js' /></head><body></body>"
+ "</html>", "text/html", "utf-8", null);

Desde já, obrigado!

--
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/groups/opt_out.

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

0 comentários:

Postar um comentário