Code example for Uri

Methods: getScheme

0
		} 
 
		@Override 
		public boolean shouldOverrideUrlLoading(final WebView view, final String url) {
			final Uri uri = Uri.parse(url);
			if (uri.getScheme().equals(mUri.getScheme())) return false;
 
			final Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));
			startActivity(intent);
			return true; 
		} 
	} 
 
}