Best code examples for WebView canGoBack method (android.webkit.WebView.canGoBack)

These code examples were ranked by Codota’s semantic indexing as the best open source examples for WebView canGoBack method.
You can now enable Codota on your own code to easily search and navigate your Java codebase.

WebView canGoBack examples from Open Source projects
This code example shows how to use the following methods: canGoBack, goBack
151:	if (webView.canGoBack()) { 
152:	webView.goBack(); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: canGoBack, goBack
108:	if (webView.canGoBack()) { 
109:	webView.goBack(); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: canGoBack, canGoForward
183:	activity.setTitleButtonEnabled("back", mWebView.canGoBack()); 
184:	activity.setTitleButtonEnabled("forward", mWebView.canGoForward()); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: canGoBack, goBack
42:	if (mWebView.canGoBack()) 
43:	mWebView.goBack(); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: canGoBack, goBack
192:	if ((keyCode == KeyEvent.KEYCODE_BACK) && mWebView.canGoBack()) { 
193:	mWebView.goBack(); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: canGoBack, getTitle
161:	setTitle(view.getTitle()); 
162:	backButton.setEnabled(view.canGoBack()); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: canGoBack, canGoForward, goBack, goForward, reload
191:	if (v.getId() == mBackButton.getId() && mWebView.canGoBack()) { // 上一頁 
192:	mWebView.goBack(); 
193:	} else if (v.getId() == mForwardButton.getId() && mWebView.canGoForward()) { // 下一頁 
194:	mWebView.goForward(); 
-
196:	mWebView.reload(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: canGoBack, canGoForward, goBack, goForward
66:	if ((keyCode == KeyEvent.KEYCODE_DPAD_LEFT) && view.canGoBack()) { 
67:	view.goBack(); 
-
69:	} else if ((keyCode == KeyEvent.KEYCODE_DPAD_RIGHT) && view.canGoForward()) { 
70:	view.goForward(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: canGoBack, goBack
72:	if(mWebView.canGoBack()) { 
-
74:	mWebView.goBack(); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: canGoBack, getUrl, goBack, loadUrl
71:	System.out.println("com.manuelmaly.mockingdroid.monitor: " + this.monitor.getMetrics(webview.getUrl())); 
-
83:	} else if ((keyCode == KeyEvent.KEYCODE_BACK) && webview.canGoBack()) { 
-
86:	String gotoURL = URIHelper.urlForLink(webview.getUrl(), currentPageBackButtonURL).toString(); 
-
88:	webview.loadUrl(gotoURL); 
-
90:	webview.goBack(); 
-
92:	this.monitor.backButtonPressed(webview.getUrl()); 
-
97:	URI menuURL = URIHelper.getMenuScreenURL(getApplicationContext(), webview.getUrl()); 
-
99:	webview.loadUrl(menuURL.toString()); 
-
103:	URI searchURL = URIHelper.getSearchScreenURL(getApplicationContext(), webview.getUrl()); 
-
105:	webview.loadUrl(searchURL.toString()); 
-
113:	return webview.getUrl().equals(startURI); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: canGoBack, getTitle
162:	setTitle(view.getTitle()); 
163:	backButton.setEnabled(view.canGoBack()); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: canGoBack, goBack
126:	if ((keyCode == KeyEvent.KEYCODE_BACK) && webView.canGoBack()) { 
127:	webView.goBack(); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: canGoBack, goBack
52:	if ((keyCode == KeyEvent.KEYCODE_BACK) && webview.canGoBack()) { 
53:	webview.goBack(); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: canGoBack, canGoForward, goBack, goForward
56:	if(wv.canGoBack()) 
-
58:	wv.goBack(); 
-
66:	if(wv.canGoForward()) 
-
68:	wv.goForward(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: canGoBack, goBack
153:	if (mWebView.canGoBack()) { 
154:	mWebView.goBack(); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: removeAllViews, canGoBack, destroy, goBack
95:	&& myWebView.canGoBack()) { 
96:	myWebView.goBack(); 
-
109:	myWebView.removeAllViews(); 
110:	myWebView.destroy(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: canGoBack, getTitle
108:	setTitle(view.getTitle()); 
109:	backButton.setEnabled(view.canGoBack()); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: canGoBack, goBack
118:	if ((keyCode == KeyEvent.KEYCODE_BACK) && webView.canGoBack()) { 
119:	webView.goBack(); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: canGoBack, goBack
108:	if (webView.canGoBack()) { 
109:	webView.goBack(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: canGoBack, goBack
28:	if ((keyCode == KeyEvent.KEYCODE_BACK) && webview.canGoBack()) { 
29:	webview.goBack(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: canGoBack, goBack
34:	if ((keyCode == KeyEvent.KEYCODE_BACK) && mWebView.canGoBack()) { 
35:	mWebView.goBack(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: canGoBack, goBack
181:	if ((keyCode == KeyEvent.KEYCODE_BACK) && webView.canGoBack()) { 
182:	webView.goBack(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: isFocused, canGoBack, goBack
38:	if (webView.isFocused() && webView.canGoBack()) { 
39:	webView.goBack(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: canGoBack, goBack
23:	if ((keyCode == KeyEvent.KEYCODE_BACK) && myWebView.canGoBack()) { 
24:	myWebView.goBack(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: canGoBack, goBack
57:	if (webview.canGoBack()) 
58:	webview.goBack(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: canGoBack, goBack
65:	if ((keyCode == KeyEvent.KEYCODE_BACK) && webView.canGoBack()) { 
66:	webView.goBack(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: canGoBack, goBack
58:	&& webview.canGoBack() == true ) { 
59:	webview.goBack(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: isFocused, canGoBack, goBack
57:	if (webView.isFocused() && webView.canGoBack()){ 
58:	webView.goBack(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setVisibility, canGoBack, goBack
73:	if ((keyCode == KeyEvent.KEYCODE_BACK) && mWebView.canGoBack()){ 
-
75:	mWebView.setVisibility(View.GONE); 
-
79:	mWebView.goBack(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: canGoBack, goBack
49:	if ((keyCode == KeyEvent.KEYCODE_BACK) && webView.canGoBack()) { 
50:	webView.goBack(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: canGoBack, goBack
106:	if ((keyCode == KeyEvent.KEYCODE_BACK) && webView.canGoBack()) { 
107:	webView.goBack(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: canGoBack, goBack
81:	if ((keycode == KeyEvent.KEYCODE_BACK) && viewer.canGoBack()) { 
82:	viewer.goBack(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: canGoBack, goBack
45:	if (webview.canGoBack()) { 
46:	webview.goBack(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: canGoBack, goBack
47:	if ((keyCode == KeyEvent.KEYCODE_BACK) && mWebView.canGoBack()) { 
48:	mWebView.goBack(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: canGoBack, goBack
58:	if (mWebView != null && mWebView.canGoBack()) 
59:	mWebView.goBack(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: canGoBack, goBack
67:	if ((keyCode == KeyEvent.KEYCODE_BACK) && webframe.canGoBack()) { 
68:	webframe.goBack(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: canGoBack, goBack
97:	if (keyCode == KeyEvent.KEYCODE_BACK && webView.canGoBack()) { 
98:	webView.goBack(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: canGoBack, goBack
30:	if ((keyCode == KeyEvent.KEYCODE_BACK) && mWebView.canGoBack()) { 
-
32:	mWebView.goBack(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: canGoBack, getTitle
101:	setTitle(view.getTitle()); 
102:	backButton.setEnabled(view.canGoBack()); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: canGoBack, getTitle
164:	setTitle(view.getTitle()); 
165:	backButton.setEnabled(view.canGoBack()); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: canGoBack, getTitle
117:	setTitle(view.getTitle()); 
118:	backButton.setEnabled(view.canGoBack()); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: canGoBack, getTitle
162:	setTitle(view.getTitle()); 
163:	backButton.setEnabled(view.canGoBack()); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: canGoBack, getTitle
162:	setTitle(view.getTitle()); 
163:	backButton.setEnabled(view.canGoBack()); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: canGoBack, getTitle
162:	setTitle(view.getTitle()); 
163:	backButton.setEnabled(view.canGoBack()); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: canGoBack, getTitle
121:	setTitle(view.getTitle()); 
122:	backButton.setEnabled(view.canGoBack()); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: canGoBack, getTitle
116:	setTitle(view.getTitle()); 
117:	backButton.setEnabled(view.canGoBack()); 
Full Snippet Info
4
CodeRank
Related WebView canGoBack Questions & Answers:
Other WebView canGoBack Examples
28:		@Override
29:		public boolean onKeyDown(int keyCode, KeyEvent event) {
30:		    if ((keyCode == KeyEvent.KEYCODE_BACK) && webview.canGoBack()) {
31:		    	webview.goBack();
32:		        return true;

Read More

canGoBack Method Overview
Gets whether this WebView has a back history item.
See Also