title: How to send data to php server and receive data to android
body: <p>I'm a newbie in android programming and I want to sent data to php server and receive data to show in android</p>
  
  <p>but I have no idea to create it, I don't no to use library? and Can give some example for me to practice about it. </p>
  
  <p>ps. sorry my english is not good.</p>
  
  <p>example Myphp "xxx.xxx.x.x/api.php"</p>
  
  <pre><code>$keyword = $_GET['keyword'];
  $index= $_GET['index'];
  $path = "http://xxxxxxx/webservice/&amp;query=".urlencode($keyword)."&amp;index=".$index."";
              $jsondata = file_get_contents($path);
              $jsons = json_decode($jsondata,true);
  
              echo json_encode($jsons);
  </code></pre>
  
  <p>I want to send <code>keyword</code> and <code>index</code> from edittext to php server and receive json data to show listview.</p>