package net.nativeplantcenter.android;

import android.app.Activity;
import android.os.Bundle;
import android.webkit.WebView;
import android.webkit.WebSettings;

public class nativePlantsChesapeake extends Activity
{
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        WebView myWebView = (WebView) findViewById(R.id.webview);
        WebSettings webSettings = myWebView.getSettings();
        webSettings.setJavaScriptEnabled(true);
        myWebView.loadUrl("file:///android_asset/index.html");
    }
}

@@ -153,16 +153,46 @@
 ettings;
+%0Aimport android.view.KeyEvent;
 %0A%0Apublic
@@ -240,16 +240,50 @@
 ivity%0A%7B%0A
+    protected WebView myWebView;%0A%0A
     /** 
@@ -491,24 +491,16 @@
         
-WebView 
 myWebVie
@@ -503,16 +503,17 @@
 bView = 
+(
 (WebView
@@ -540,16 +540,17 @@
 webview)
+)
 ;%0A      
@@ -646,24 +646,24 @@
 bled(true);%0A
-
         myWe
@@ -718,11 +718,509 @@
 );%0A    %7D
+%0A%0A    @Override%0A    public boolean onKeyDown(int keyCode, KeyEvent event) %7B%0A        // Check if the key event was the Back button and if there's history%0A        if ((keyCode == KeyEvent.KEYCODE_BACK) && myWebView.canGoBack()) %7B%0A            myWebView.goBack();%0A            return true;%0A        %7D%0A        // If it wasn't the Back key or there's no web page history, bubble up to the default%0A        // system behavior (probably exit the activity)%0A        return super.onKeyDown(keyCode, event);%0A    %7D
 %0A%7D%0A

use hardware back button for browser history