@@ -0,0 +1,1653 @@
+package com.example.root.httprequest2;%0A%0Aimport android.os.Bundle;%0Aimport android.os.StrictMode;%0Aimport android.support.v7.app.AppCompatActivity;%0Aimport android.util.Log;%0Aimport android.widget.TextView;%0A%0Aimport org.apache.http.client.HttpClient;%0Aimport org.apache.http.client.ResponseHandler;%0Aimport org.apache.http.client.methods.HttpGet;%0Aimport org.apache.http.impl.client.BasicResponseHandler;%0Aimport org.apache.http.impl.client.DefaultHttpClient;%0A%0Aimport java.io.BufferedReader;%0Aimport java.net.URI;%0A%0A%0Apublic class MainActivity extends AppCompatActivity %7B%0A%0A    @Override%0A    protected void onCreate(Bundle savedInstanceState) %7B%0A        super.onCreate(savedInstanceState);%0A        setContentView(R.layout.activity_main);%0A%0A        StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build();%0A        StrictMode.setThreadPolicy(policy);%0A%0A        TextView text=(TextView)findViewById(R.id.text1);%0A%0A        %0A        BufferedReader in = null;%0A        String data = null;%0A%0A        try%7B%0A            HttpClient httpclient = new DefaultHttpClient();%0A%0A            HttpGet request = new HttpGet();%0A            URI website = new URI(%22http://androidexample.com/media/webservice/httpget.php?user=info&name=hello&email=info@aisuvro.com&pass=123%22);%0A            request.setURI(website);%0A%0A%0A            ResponseHandler%3CString%3E responseHandler = new BasicResponseHandler();%0A            data = httpclient.execute(request, responseHandler);%0A%0A%0A            text.setText(data);%0A        %7Dcatch(Exception e)%7B%0A            Log.e(%22log_tag%22, %22Error in http connection %22+e.toString());%0A            text.append(e.toString());%0A        %7D%0A    %7D%0A%0A%0A%0A%0A%0A%0A%0A%0A%0A%7D%0A

Create mainActivity.java