title: Input modify URL Webview?
body: <p>users have an activity with an edittext and a button.
  in the edittext they have to insert their login ID. and press go to display a other activity with webview loading the right site.</p>
  
  <p>an example. this is the link i want users to visit .  www.example.com/time/id=<strong><em>1</em></strong>/type=student</p>
  
  <p>if sombody enters a 2 in the edittext it wil open the times for student id 2 and so on.</p>
  
  <p>this is what i have.</p>
  
  <p><strong>LOGIN</strong></p>
  
  <pre><code>package com.beter;
  
  import android.os.Bundle;
  import android.view.View;
  import android.widget.Button;
  import android.app.Activity;
  import android.content.Intent;
  
  
  public class LoginActivity extends Activity {
  
  Button go_btn;
  
  @Override
  public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.login);
  
              go_btn = (Button) findViewById(R.id.go_btn);
  
  
  
  
        go_btn.setOnClickListener(new View.OnClickListener() {
  
          public void onClick(View v) {
              // TODO Auto-generated method stub
              Intent myIntent = new Intent(LoginActivity.this, WebActivity.class);
              LoginActivity.this.startActivity(myIntent);
          }
      });      
  }
  </code></pre>
  
  <p><strong>and the layout</strong></p>
  
  <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:tools="http://schemas.android.com/tools"
  android:layout_width="match_parent"
  android:layout_height="match_parent" &gt;
  
  &lt;EditText
      android:id="@+id/idfield"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_alignParentLeft="true"
      android:layout_alignParentTop="true"
      android:ems="10"
      android:hint="@string/id"
      android:inputType="number" &gt;
  
      &lt;requestFocus /&gt;
  &lt;/EditText&gt;
  
  &lt;Button
      android:id="@+id/go_btn"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_alignParentRight="true"
      android:layout_alignParentTop="true"
      android:layout_toRightOf="@+id/idfield"
      android:text="@string/login" /&gt;
  </code></pre>
  
  <p></p>
  
  <p><strong>The Webview Activity</strong></p>
  
  <pre><code>package com.beter;
  
  import android.app.Activity;
  import android.os.Bundle;
  import android.webkit.WebView;
  
  public class WebActivity extends Activity  {
  
  
  @Override
  public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.webview);
  
  
      WebView webview = new WebView(this);
      setContentView(webview);
  
  
      webview.loadUrl("http://roosters.gepro-osi.nl/roosters/rooster.php?wijzigingen=1&amp;leerling=116277&amp;type=Leerlingrooster&amp;afdeling=12-13_OVERIG&amp;school=905");
  }
  }
  </code></pre>
  
  <p><strong>and again the layout</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent" &gt;
  
      &lt;WebView
          android:id="@+id/webView1"
          android:layout_width="match_parent"
          android:layout_height="match_parent" /&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>How do i make the user input. display the good webview. ?</p>