// do above Server call here
@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) {
// do above Server call here
HttpClient client = new DefaultHttpClient();
HttpPost post = new HttpPost(urlInputApi);
@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;
@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;
}