Sending group SMS android
<p>I need to crete an application like group messaging. For that I am using SmsManager class.</p>

<p>MY code look like</p>

<pre><code>    static List&lt;String&gt; phone_num = new ArrayList&lt;String&gt;();
static List&lt;String&gt; SMS = new ArrayList&lt;String&gt;();

   @Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.main);
            readExcelFile(this, "/sdcard/Excel.xls");
    View readExcelButton = findViewById(R.id.buttonSend);
            readExcelButton.setOnClickListener(this);

}


      public void onClick(View v) {
        switch (v.getId()) {
        case R.id.buttonSend:
          for(int i=0;i&lt;phone_num.size();i++)
            {
               SmsManager smsManager = SmsManager.getDefault();
               smsManager.sendTextMessage(phone_num.get(i),SMS.get(i), null, null);        
                }

  Toast.makeText(getBaseContext(), "Sendingfinished",Toast.LENGTH_SHORT).show();  


                break;
       default: break;
        }
    }
</code></pre>

<p>My question is, is it a right method for sending group sms. Or should I create pendingIntent with broadcast receiver to monitor the sending process and wait inside the for loop until each  message send finished to send next. </p>

<p>Thanks in advance....       </p>
