Problème du chargement HTML avec le webview.loadData
Salut tous le monde,
Je suis en train de développer une application.J'ai eu un petit problème lors de l'utilisation de l'instruction "webview.loadData".
Il sert à importer du contenu html et de l'afficher.
voici une partie du code:
Code:
1 2 3
| webview = (WebView) findViewById(R.id.WebView);
String customHtml = "<html><body>"+R.string.page+"</body></html>";
webview.loadData(customHtml, "text/html", "UTF-8"); |
Avec:"R.string.page" une chaine que j'ai définit dans String.xml
Code:
<string name="page"><iframe width="100%" height="100%" scrolling="no" frameborder="no" src="https://www.google.com/fusiontables/embedviz?viz=MAP&q=select+col7+from+1QC2cfx6TPm3UqT5kGLuYoo_sZxXsJytRIQm51gI+where+col6+%3D+'Fes'&h=false&lat=34.08800569604619&lng=-5.027033634765532&z=11&t=3&l=col7&y=2&tmplt=2"></iframe></string>
Mon problème c'est quelle n'affiche rien , .... est-ce quelqu'un aurait une solution?