@Override
        protected String doInBackground(String[] par) {
            // do above Server call here
            HttpClient client = new DefaultHttpClient();
            HttpPost post = new HttpPost(urlInputApi);
            List<NameValuePair> params = new ArrayList<NameValuePair>();
            params.add(new BasicNameValuePair("inputEvent", par[0]));
            params.add(new BasicNameValuePair("user", par[1]));
            params.add(new BasicNameValuePair("command", "insertinput"));
            String response = "";
            try {
                post.setEntity(new UrlEncodedFormEntity(params));
                HttpResponse resp = null;
                resp = client.execute(post);
                HttpEntity ent = resp.getEntity();
                response = EntityUtils.toString(ent);
            } catch (IOException e) {
                e.printStackTrace();
            }
            return response;
        }
@Override
        protected String doInBackground(String[] par) {
           
            HttpClient client = new DefaultHttpClient();
            HttpPost post = new HttpPost(urlInputApi);
            List<NameValuePair> params = new ArrayList<NameValuePair>();
            params.add(new BasicNameValuePair("inputEvent", par[0]));
            params.add(new BasicNameValuePair("user", par[1]));
            params.add(new BasicNameValuePair("command", "insertinput"));
            String response = "";
            try {
                post.setEntity(new UrlEncodedFormEntity(params));
                HttpResponse resp = null;
                resp = client.execute(post);
                HttpEntity ent = resp.getEntity();
                response = EntityUtils.toString(ent);
            } catch (IOException e) {
                e.printStackTrace();
            }
            return response;
        }
@override protected string doinbackground(string[] par) { httpclient client = new defaulthttpclient(); httppost post = new httppost(urlinputapi); list<namevaluepair> params = new arraylist<namevaluepair>(); params.add(new basicnamevaluepair("inputevent", par[0])); params.add(new basicnamevaluepair("user", par[1])); params.add(new basicnamevaluepair("command", "insertinput")); string response = ""; try { post.setentity(new urlencodedformentity(params)); httpresponse resp = null; resp = client.execute(post); httpentity ent = resp.getentity(); response = entityutils.tostring(ent); } catch (ioexception e) { e.printstacktrace(); } return response; }