I have an online database and a simple php script with some insert statements. I want to pass variables through the URL to update the database using the php script I have created. When I run the URL on my browser it works fine and adds the values into the database, but now I want to do this with android. So far this is pretty much all I could find to help me with this:
HttpClient httpClient = new DefaultHttpClient();
HttpContext localContext = new BasicHttpContext();
HttpGet httpGet = new HttpGet("http://www.example.com/" + URL);
HttpResponse response = httpClient.execute(httpGet, localContext);
And I have no idea what to do afterwards. I've been searching for a solution but nothing I find works for me. All I need to know is what to do to launch the URL in order to update my database.