title: How to send data from Android to php via POST method?
body: <p>I need to send this data via POST method to a PHP page I have tried several examples but without any joy can anyone please give me a simple example of it.    </p>
  
  <p>I can send it via GET method successfully.</p>
  
  <pre><code>String serial = android.os.Build.SERIAL;
  String board = android.os.Build.BOARD;
  String display = android.os.Build.DISPLAY;
  String model = Build.MODEL;
  String id = android.os.Build.ID;
  String manufacturer = Build.MANUFACTURER;
  String brand = Build.BRAND;
  String type = Build.TYPE;
  String user = Build.USER;
  String base = "" + android.os.Build.VERSION_CODES.BASE;
  String incremental = android.os.Build.VERSION.INCREMENTAL;
  String sdk = android.os.Build.VERSION.SDK;
  String host = Build.HOST;
  String fingerprint = Build.FINGERPRINT;
  String versionCode = Build.VERSION.RELEASE;
  
  android.content.Intent intent = new android.content.Intent(android.content.Intent.ACTION_VIEW,
  android.net.Uri.parse("http://xxxxxxxxxxxx/?Serial="+serial+"&amp;Board="+board+"" +
          "&amp;Display="+display+"&amp;Model="+model+"&amp;Id="+id+"&amp;Manufacture="+manufacturer+"&amp;Brand="+brand+"" +
          "&amp;Type="+type+"&amp;User="+user+"&amp;Base="+base+"&amp;Incremental="+incremental+"&amp;SDK="+sdk+"" +
          "&amp;Host="+host+"&amp;Fingerprint="+fingerprint+"&amp;VersionCode="+versionCode));
  startActivity(intent);
  </code></pre>