title: How to send SMS message on android device in the background?
body: <p>in my app i need to be able to send a text message in a background, without users intervention. I am using SmsManager (code below) to accomplish that. It does send a message but the popup asking me to choose a delivery method still shows up (even after the message is sent). I do have Google Voice installed thus the popup. Is there a way for me to avoid displaying this popup while sending text message? Perhaps i shall use a different method?</p>
  
  <p>Thanks!</p>
  
  <pre><code>SmsManager sm = SmsManager.getDefault();
  sm.sendTextMessage(number, null, message, null, null);
  </code></pre>
  
  <p><strong>Update:</strong> so just to see what will happen i selected a default delivery method being "text message" and check the box saying use this as default. Now when i send the message using the code above it sends it in the background but it also bring up the empty form to send a message to :| How do i get rid of this? :)</p>