JSONObject jso = null; try { HttpPost post = new HttpPost("http://twitter.com/statuses/update.json"); LinkedList<BasicNameValuePair> out = new LinkedList<BasicNameValuePair>(); out.add(new BasicNameValuePair("status", params[0])); post.setEntity(new UrlEncodedFormEntity(out, HTTP.UTF_8)); post.setParams(getParams()); // sign the request to authenticate mConsumer.sign(post); String response = mClient.execute(post, new BasicResponseHandler()); jso = new JSONObject(response); } catch (UnsupportedEncodingException e) { e.printStackTrace(); } catch (OAuthMessageSignerException e) { e.printStackTrace(); } catch (OAuthExpectationFailedException e) { e.printStackTrace(); } catch (OAuthCommunicationException e) { e.printStackTrace(); } catch (ClientProtocolException e) {