Ok, the only solution I've found is to create an HTTPClient to create
connection and do a Get petition. With this method I can get
everything (header, status... etc) in the response and then give all
datas to the Webview with webView.loadDataWithBaseUrl.
Something like this:

HttpClient httpclient = new DefaultHttpClient();
HttpGet httpget = new HttpGet("http://ja.wikipedia.org/wiki/刀";;);
HttpResponse response;

BufferedReader real_response = null;
try {
        response = httpclient.execute(httpget);
        new InputStreamReader(
                        response.getEntity().getContent(), "UTF-8"));
        } catch (Exceptionn e) {
                e.printStackTrace();
        }
        if (real_response != null)
        {
                String data = "";
                String tempdata = "";
                try {
                        while ((tempdata = real_response.readLine()) !
= null)
                        {
                        data += tempdata;
                        }
                } catch (Exception e) {
                        e.printStackTrace();
                }
                wv.loadDataWithBaseURL("http://www.lliane.com/";;,
                                data,
                                "text/html",
                                "UTF-8",
                                "about:blank");
}

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to