Code example for WebView: Displaying local web pages

Methods: loadData

0
	} 
 
	@Override 
	public View setTopAdvertisement() {
		// TODO Auto-generated method stub 
		WebView txt = new WebView(this);
		String str = "<marquee behavior='alternate'>Top Advertisement</marquee>";
		txt.loadData(str, "text/html", "utf-8");
 
		return null; 
	} 
 
	@Override 
	public View setBottomAdvertisement() {
		// TODO Auto-generated method stub 
		WebView txt = new WebView(this);
		String str = "<marquee direction='right' behavior='alternate'>Bottom Advertisement</marquee>";
		txt.loadData(str, "text/html", "utf-8");
		return null; 
	}