title: Android button and edit text
body: <p>I hav only a little exp in android.. nw I am developing an app ..it has one edit text and one button and a web view...the user can enter any keyword in edit text when the user presses the button it has to search the android market and the result has to displa in webview..nw i knw hw to display a web page in the webview....`</p>
  
  <pre><code>package com.example.webviewsimple;
  
  import android.app.Activity;
  import android.os.Bundle;
  import android.view.Menu;
  import android.webkit.WebView;
  
  public class MainActivity extends Activity {
  
      WebView myWebView;
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
          WebView myWebView=(WebView)findViewById(R.id.webView1);
          myWebView.loadUrl("http://www.google.com");
  
      }
  
      @Override
      public boolean onCreateOptionsMenu(Menu menu) {
          // Inflate the menu; this adds items to the action bar if it is present.
          getMenuInflater().inflate(R.menu.main, menu);
          return true;
      }
  
  }
  </code></pre>
  
  <p>`</p>
  
  <p>this is the code used to search the market</p>
  
  <p>`</p>
  
  <pre><code>    Intent i = new Intent(Intent.ACTION_VIEW);
     i.setData(Uri.parse("market://search?q=com.amazon.kindle"));
     startActivity(i);
  
  ` 
  </code></pre>