@@ -0,0 +1,1736 @@
+package com.MOS.fastfood;%0A%0Aimport java.io.ByteArrayOutputStream;%0Aimport java.io.IOException;%0A%0Aimport org.apache.http.HttpResponse;%0Aimport org.apache.http.HttpStatus;%0Aimport org.apache.http.StatusLine;%0Aimport org.apache.http.client.ClientProtocolException;%0Aimport org.apache.http.client.HttpClient;%0Aimport org.apache.http.client.methods.HttpGet;%0Aimport org.apache.http.impl.client.DefaultHttpClient;%0A%0Aimport android.os.AsyncTask;%0Aimport android.widget.Toast;%0A%0Apublic  class HttpGetConnection extends AsyncTask%3CString, String, String%3E %7B%0A%0A%09RestaurantData restaurantData = new RestaurantData();%0A%09public static String tempResult = %22%22;%0A%0A%09@Override%0A%09protected String doInBackground(String... uri) %7B%0A%09%09HttpClient httpclient = new DefaultHttpClient();%0A%09%09HttpResponse response;%0A%09%09String responseString = null;%0A%09%09try %7B%0A%09%09%09response = httpclient.execute(new HttpGet(uri%5B0%5D));%0A%09%09%09StatusLine statusLine = response.getStatusLine();%0A%09%09%09if(statusLine.getStatusCode() == HttpStatus.SC_OK)%7B%0A%09%09%09%09ByteArrayOutputStream out = new ByteArrayOutputStream();%0A%09%09%09%09response.getEntity().writeTo(out);%0A%09%09%09%09responseString = out.toString();%0A%09%09%09%09out.close();%0A%09%09%09%7D else%7B%0A%09%09%09%09//Closes the connection.%0A%09%09%09%09response.getEntity().getContent().close();%0A%09%09%09%09throw new IOException(statusLine.getReasonPhrase());%0A%09%09%09%7D%0A%09%09%7D catch (ClientProtocolException e) %7B%0A%09%09%09e.printStackTrace();%0A%09%09%7D catch (IOException e) %7B%0A%09%09%09e.printStackTrace();%0A%09%09%7D%0A%09%09System.out.println(%22im here3%22);%0A%0A%09%09return responseString;%0A%09%7D%0A%0A%09@Override%0A%09protected void onPostExecute(String result) %7B%0A%09%09super.onPostExecute(result);%0A%09%09String temp = %22this is%22;%0A%09%09temp+=result;%0A%09%09System.out.println(temp);%0A%09%09if(result != null)%0A%09%09%7B%0A%09%09%09restaurantData.parse(result);%0A%09%09%7D%0A%09%09else%0A%09%09%09System.out.println(%22Restaurant Added%22);%0A%09%7D%0A%7D%0A%0A

Create HttpGetConnection.java