Code example for WebView

Methods: setPictureListener

0
					@Override 
					public void onNewPicture(WebView view, Picture picture) {
						if (ready.get()) {
							final Canvas c = new Canvas(b);
							view.draw(c);
							w.setPictureListener(null);
							signal.countDown();
						} 
					} 
				}); 
				w.layout(0, 0, rect.width(), rect.height());
				w.loadDataWithBaseURL(baseURL, html, "text/html", "UTF-8", null);
			} 
		}); 
		try { 
			signal.await();
		} catch (InterruptedException e) {
			e.printStackTrace();
		} 
		return b;
	}