Code example for Activity

Methods: startActivity

0
		} 
 
		@Override 
		public boolean shouldOverrideUrlLoading(final WebView view, final String url) {
			try { 
				mActivity.startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(url)));
			} catch (final ActivityNotFoundException e) {
				showErrorMessage(mActivity, null, e, false);
			} 
			return true; 
		} 
	} 
} 
Contextual code suggestions in your IDE  Get Codota for Java