It should return to the previous web
page if any first, not directly to
the dictionary.
The action bar up button is for going
directly back to the dictionary.
+ @Override\r
+ public void onBackPressed() {\r
+ final MyWebView webView = (MyWebView)findViewById(R.id.webView);\r
+ if (webView.canGoBack()) webView.goBack();\r
+ else super.onBackPressed();\r
+ }\r
+\r
@Override\r
public boolean onOptionsItemSelected(MenuItem item) {\r
// Explicitly handle the up button press so\r
@Override\r
public boolean onOptionsItemSelected(MenuItem item) {\r
// Explicitly handle the up button press so\r