title: How To Open Web Page Within My App?
body: <p>This is my first question here. I know that this question has been asked before, but I didn't find an answer/solution that really explains the answer for a totally newbie like me.</p>
  
  <p>I am creating an app with a linear layout that has a lot of buttons, each button should drive the user to a different web page. The buttons works well and every buttons goes to its specific web page, but in the default browser, not within the app.</p>
  
  <p>This is my webview.xml file:</p>
  
  <pre><code>&lt;WebView  xmlns:android="http://schemas.android.com/apk/res/android"
  android:id="@+id/webView1"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent" /&gt;
  </code></pre>
  
  <p>This is the WebViewActivity.java file:</p>
  
  <pre><code>public class WebViewActivity extends Activity {
  
  private WebView webView;
  
  public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.webview);
  
      webView = (WebView) findViewById(R.id.webView1);
      webView.getSettings().setJavaScriptEnabled(true);
      webView.loadUrl(
              "http://egy-tech-droid.blogspot.com.eg/search/label/%D8%AA%D8%B7%D8%A8%D9%8A%D9%82%D8%A7%D8%AA%20%D8%AD%D8%B5%D8%B1%D9%8A%D8%A9");
  
  }
  </code></pre>
  
  <p>I added the internet permission in the Manifest file:</p>
  
  <pre><code> &lt;uses-permission android:name="android.permission.INTERNET" /&gt;
  </code></pre>
  
  <p>This opens the web page but in the default browser of the device and I want it to open inside my app. Any help? (please give me a detailed answer/explanation)</p>