SMS send twice Android 2.2
<p>Im using sms receiver and sending auto reply to the number from where its coming from but its sending same sms twice to that number with same body..im using following code (Android 2.0)</p>

<pre><code>public void sendMultipartSMS(String phoneNumber, String message)
 {
    try 
       {
         String SENT = "SMS_SENT";  
             SmsManager sms =  android.telephony.SmsManager.getDefault();
          ArrayList&lt;String&gt; parts = sms.divideMessage(message);
          int messageCount = parts.size();
          ArrayList&lt;PendingIntent&gt; sendIntents = new ArrayList&lt;PendingIntent&gt;(messageCount);
          for (int i = 0; i &lt; sendIntents.size(); i++)
          {
            Intent sendInt = new Intent(SENT);
            PendingIntent sendResult = PendingIntent.getBroadcast(baseContext, 0, sendInt, 0);
            sendIntents.add(sendResult);
          }

          if (phoneNumber.length()&gt;0 &amp;&amp; message.length()&gt;0)  
          {
            sms.sendMultipartTextMessage(phoneNumber, null, parts, sendIntents, null);
                     }

          }
catch (Exception e) 
{
    e.printStackTrace();
}
</code></pre>
