Private void getHtml_data (String Url, int FontSize ){
String text = "";
Try {
URL url = new URL (Url );
URLConnection conn;
Conn = url. openConnection ();
// Get the response
BufferedReader rd = new BufferedReader (new InputStreamReader (conn
. GetInputStream ()));
String line = "";
String data = "";
While (line = rd. readLine ())! = Null ){
Message lmsg;
Lmsg = new Message ();
Lmsg. obj = line;
Lmsg. What = 0;
Data = Data + (string) lmsg. OBJ;
}
TEXT = data. Replace ("<body>", "<body style = \" font-size: "+ fontsize
+ "PX; \"> ");
} Catch (ioexception e ){
// Todo auto-generated Catch Block
E. printstacktrace ();
}
Mywebview. loaddatawithbaseurl ("", text, "text/html", "UTF-8", null );
}
Data is the source code of the webpage you want. Modify text (just like adding size to the body)
Finally, use mywebview. loaddatawithbaseurl ("", text, "text/html", "UTF-8", null );