storyteller/StoryTeller/src/org/stt/activity/WebViewActivity.java
@Override
   public boolean onKeyDown(int keyCode, KeyEvent event) {
      // Check if the key event was the Back button and if there's history
      if ((keyCode == KeyEvent.KEYCODE_BACK) && _wv.canGoBack()) {
         _wv.goBack();
         return true;
      } else if ((keyCode == KeyEvent.KEYCODE_FORWARD) && _wv.canGoForward()) {
         _wv.goForward();
         return true;
      }
      // If it wasn't the Back key or there's no web page history, bubble up to the default
      // system behavior (probably exit the activity)
      return super.onKeyDown(keyCode, event);
   }
/**
    * Navigating web page history When your WebView overrides URL loading, it automatically accumulates a history of
    * visited web pages. You can navigate backward and forward through the history with goBack() and goForward().
    */
Navigating web page history When your WebView overrides URL loading, it automatically accumulates a history of
visited web pages. You can navigate backward and forward through the history with goBack() and goForward().
Navigating web page history When your WebView overrides URL loading it automatically accumulates a history of visited web pages . You can navigate backward and forward through the history with goBack () and goForward () .
@Override
   public boolean onKeyDown(int keyCode, KeyEvent event) {
      if ((keyCode == KeyEvent.KEYCODE_BACK) && _wv.canGoBack()) {
         _wv.goBack();
         return true;
      } else if ((keyCode == KeyEvent.KEYCODE_FORWARD) && _wv.canGoForward()) {
         _wv.goForward();
         return true;
      }
      return super.onKeyDown(keyCode, event);
   }
@ Override public boolean onKeyDown ( int keyCode , KeyEvent event ) { if ( ( keyCode == KeyEvent . KEYCODE_BACK ) && _wv . canGoBack ( ) ) { _wv . goBack ( ) ; return true ; } else if ( ( keyCode == KeyEvent . KEYCODE_FORWARD ) && _wv . canGoForward ( ) ) { _wv . goForward ( ) ; return true ; } return super . onKeyDown ( keyCode , event ) ; }
Navigating web page history When your WebView overrides URL loading, it automatically accumulates a history of
 visited web pages.
Navigating web page history When your WebView overrides URL loading it automatically accumulates a history of visited web pages .
// Check if the key event was the Back button and if there's history // If it wasn't the Back key or there's no web page history, bubble up to the default // system behavior (probably exit the activity)