title: Make POST request on Android app
body: <p>I know this has been asked before but I'm struggling.. I barely know any Java, but want an app so I can do my POST request without opening my website.</p>
  
  <p>So I've got this layout</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/editText1"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_alignParentRight="true"
          android:layout_alignParentTop="true"
          android:ems="10"
          android:inputType="textPersonName" /&gt;
  
      &lt;TextView
          android:id="@+id/textView1"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_alignParentLeft="true"
          android:layout_alignParentTop="true"
          android:text="Name:"
          android:textAppearance="?android:attr/textAppearanceLarge"
          android:textSize="20dp" /&gt;
  
      &lt;EditText
          android:id="@+id/editText2"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_alignLeft="@+id/editText1"
          android:layout_below="@+id/editText1"
          android:ems="10"
          android:inputType="textPostalAddress" /&gt;
  
      &lt;TextView
          android:id="@+id/textView2"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_alignParentLeft="true"
          android:layout_alignTop="@+id/editText2"
          android:text="Address:"
          android:textAppearance="?android:attr/textAppearanceLarge"
          android:textSize="20dp" /&gt;
  
      &lt;EditText
          android:id="@+id/editText3"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_alignParentRight="true"
          android:layout_below="@+id/editText2"
          android:ems="10"
          android:inputType="phone" /&gt;
  
      &lt;TextView
          android:id="@+id/textView3"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_alignParentLeft="true"
          android:layout_below="@+id/editText2"
          android:text="Phone:"
          android:textAppearance="?android:attr/textAppearanceLarge"
          android:textSize="20dp" /&gt;
  
      &lt;EditText
          android:id="@+id/editText4"
          android:layout_width="wrap_content"
          android:layout_height="200dp"
          android:layout_alignLeft="@+id/editText3"
          android:layout_below="@+id/editText3"
          android:ems="10"
          android:inputType="textMultiLine" /&gt;
  
      &lt;TextView
          android:id="@+id/textView4"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_alignParentLeft="true"
          android:layout_alignTop="@+id/editText4"
          android:text="Comments:"
          android:textAppearance="?android:attr/textAppearanceLarge"
          android:textSize="15dp" /&gt;
  
      &lt;Button
          android:id="@+id/button1"
          android:layout_width="300dp"
          android:layout_height="50dp"
          android:layout_alignParentLeft="true"
          android:layout_below="@+id/editText4"
          android:layout_toLeftOf="@+id/editText4"
          android:text="Done"
          android:onClick="goToWeb(???);" /&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>and this Java:</p>
  
  <pre><code>package com.example.request;
  
  import android.os.Bundle;
  import android.app.Activity;
  import android.view.Menu;
  
  public class MainRequest extends Activity {
  
      @Override
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main_request);
      }
  
      @Override
      public boolean onCreateOptionsMenu(Menu menu) {
          getMenuInflater().inflate(R.menu.activity_main_request, menu);
          return true;
      }
  
      public void goToWeb() {
          /* open webpage - how? */
      }
  }
  </code></pre>
  
  <p>I want to make this POST request to <code>http://www.example.com</code> when they click Done:</p>
  
  <pre><code>name: (content of @+id/editText1)
  addr: (content of @+id/editText2)
  phone: (content of @+id/editText3)
  comment: (content of @+id/editText4)
  </code></pre>
  
  <p>I want the phone's browser to open, and perform the POST request (if that makes sense)</p>
  
  <p>How do I do this?</p>