Code example for Message

0
		public JavaScriptInterface(NewsblurWebview bookmarkWebView) {
			view = bookmarkWebView;
		} 
 
	    public void scroll(final int i ) {
	    	Message msg = new Message();
	    	msg.obj = Integer.valueOf(i);
	    	msg.what = 0;
	    	handler.dispatchMessage(msg);
	    } 
	} 
	 
 
	public void setHandler(Handler h) {
		this.handler = h;
		loadUrl("javascript:window.onload=webview.scroll(document.body.scrollHeight)");
	} 
 
	public void setTextSize(float textSize) {
		Log.d("Reading", "Setting textsize to " + (AppConstants.FONT_SIZE_LOWER_BOUND + textSize));
		loadUrl("javascript:document.body.style.fontSize='" + (AppConstants.FONT_SIZE_LOWER_BOUND + textSize) + "em';");