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 : Sélectionner tout - Visualiser dans une fenêtre à part
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 : Sélectionner tout - Visualiser dans une fenêtre à part
     <string name="page"><iframe width="100%" height="100%" scrolling="no" frameborder="no" src="https://www.google.com/fusiontables/embedviz?viz=MAP&amp;q=select+col7+from+1QC2cfx6TPm3UqT5kGLuYoo_sZxXsJytRIQm51gI+where+col6+%3D+'Fes'&amp;h=false&amp;lat=34.08800569604619&amp;lng=-5.027033634765532&amp;z=11&amp;t=3&amp;l=col7&amp;y=2&amp;tmplt=2"></iframe></string>
Mon problème c'est quelle n'affiche rien , .... est-ce quelqu'un aurait une solution?