Code example for WebViewClient

Methods: onPageStarted

0
        mConfig = new DomainConfig(new String[]{"mixi.jp", "mixi.co.jp"});
    } 
 
    public void testOnPageStarted() { 
		WebViewClient client = new WebViewClientProxy(new WebViewClient(), mConfig);
		client.onPageStarted(null, "http://mixi.jp", null);
		client.onPageStarted(null, "http://mixi.co.jp", null);
		client.onPageStarted(null, "http://t.mixi.jp", null);
		client.onPageStarted(null, "http://t.mixi.co.jp", null);
		 
	} 
	 
	public void testOnPageStartedOnException() { 
		try { 
			WebViewClient client = new WebViewClientProxy(new WebViewClient(), mConfig);
			client.onPageStarted(null, "http://mix.jp", null);
			fail();
		} catch (Exception exp) {
		} 
	} 
}