title: webview and android eclipse
body: <p>I have a HTML5 webpage, I want to use webview for Android DSK. </p>
  
  <p>This is my androidmanifest.xml</p>
  
  <pre><code> &lt;?xml version="1.0" encoding="utf-8"?&gt;
   &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
   package="com.example.myfirstapp"
   android:versionCode="1"
   android:versionName="1.0" &gt;
  
   &lt;uses-permission android:name="android.permission.INTERNET" /&gt;
  
   &lt;uses-sdk
      android:minSdkVersion="8"
      android:targetSdkVersion="17" /&gt;
  
   &lt;application
      android:allowBackup="true"
      android:icon="@drawable/ic_launcher"
      android:label="@string/app_name"
      android:theme="@style/AppTheme" &gt;
      &lt;activity
          android:name="com.example.myfirstapp.MainActivity"
          android:label="@string/app_name" &gt;
          &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.MAIN" /&gt;
  
              &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
   &lt;/application&gt;
  
   &lt;/manifest&gt;
  </code></pre>
  
  <p>And this is my activitymain.xml on the layout folder:</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"
   tools:context=".MainActivity" &gt;
  
   &lt;TextView
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_centerHorizontal="true"
      android:layout_centerVertical="true"
      android:text="@string/hello_world" /&gt;
  
  
  &lt;WebView  xmlns:android="http://schemas.android.com/apk/res/android"
  android:id="@+id/webview"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent"
  /&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>What else should I do? And where to put that code?</p>
  
  <p>Google android documentation says this:</p>
  
  <p>To load a web page in the WebView, use loadUrl(). For example:</p>
  
  <pre><code>WebView myWebView = (WebView) findViewById(R.id.webview);
  myWebView.loadUrl("http://www.example.com");
  </code></pre>
  
  <p>But where should I put these lines of code? In a new file? I've tried a lot of things with no success.</p>