안드로이드 개발 질문/답변
(글 수 45,052)
(코드하이라이트가 난 왜 잘 않돼죠?
보는 분들께 미안해요!)
아래의 html코드를 안드로이드에서 구현해하는데요.
이미지가 표시되지 않습니다.
<html>
<head>
<meta http-equiv='Content-Type' content='text/html; charset=utf-8'>
</head>
<body>
<center>
<a href='http://www.naver.com'>
<img src='http://www.pierload.x-y.net/img/totoro.jpg'>
</a>
</center>
</body>
</html>
private void test(){String html =
"<html>" +
"<head>" +
"<meta http-equiv='Content-Type' content='text/html; charset=utf-8'>" +
"</head>" +
"<body>" +
"<img src='http://www.pierload.x-y.net/img/totoro.jpg'> +
"</body>" +
"</html>";
_webView.loadData(html, "text/html", "UTF-8");
}
어디가 잘못인지 알려주세욤.
앞서 나간 이들께 부탁 드립니다.




그냥 html 파일을 웹에 올려서 그걸 loadUrl 하시는게 좋지 않나요? ^^;