title: How to send SMS using Twilio in my android application?
body: <p>In my android application I have created one button, when I had pressed on the button I want to send message.So for that I have created one java class and written twilio code.</p>
  
  <pre><code>final TwilioRestClient client = new TwilioRestClient(
                          ACCOUNT_SID, AUTH_TOKEN);
  
                  // Get the main account (The one we used to authenticate the
                  // client)
                  final Account mainAccount = client.getAccount();
  
                  final SmsFactory messageFactory = mainAccount.getSmsFactory();
                  final Map&lt;String, String&gt; messageParams = new HashMap&lt;String, String&gt;();
                  messageParams.put("To", "+912342423423");
                  messageParams.put("From", "+132432432434");
                  messageParams.put("Body", "This is my message");
                  try {
                      messageFactory.create(messageParams);
                  } catch (TwilioRestException e) {
                      e.printStackTrace();
                  }
  </code></pre>
  
  <p>when I am using the above code it showing some error like  <code>java.lang.NoSuchMethodError: org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager</code></p>
  
  <p>I have added only one jar file in lib folder as <code>" twilio-java-sdk-3.3.10-jar-with-dependencies.jar ".</code></p>
  
  <p>please tell me what can I do?</p>