Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- protected String doInBackground(String... params)
- {
- HttpClient httpclient = new DefaultHttpClient();
- HttpPost httppost = new HttpPost(params[0]);
- try {
- HttpResponse response = httpclient.execute(httppost);
- jsonResult = inputStreamToString(
- response.getEntity().getContent()).toString();
- }
- catch (ClientProtocolException e) {
- e.printStackTrace();
- } catch (IOException e) {
- e.printStackTrace();
- }
- return null;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement