0

how to send a message to multiple contact in one thread?

eg:

sendto:NO1,NO2,NO3

The results in threads table like below:

recipient_ids:1 2 3

type:1

solution renew(20121213):

Build the android system by myself ,and use the libary in

out/target/common/obj/JAVA_LIBRARIES

and reference the stock mms app ,creat or get new thread id with

getOrCreateThreadId(Context context, String recipient) 

recipient: a comma separated list of numbers

log1000
  • 587
  • 5
  • 17

2 Answers2

0

if it is an sms you can use below,

MobNumber is an Array

 for (int i = 0; i < MobNumber.size(); i++) 
        {
                 SmsManager sender=SmsManager.getDefault();
                 sender.sendTextMessage(MobNumber.get(i).toString(),null,Text , null, null);
         }
Talha
  • 12,673
  • 5
  • 49
  • 68
  • i have tried it with loop,but the thread table field :recipient_ids,just log one recipient id of the numbers. :( – log1000 Nov 29 '12 at 13:56
0

Build the android system by myself ,and use the libary in

out/target/common/obj/JAVA_LIBRARIES

and reference the stock mms app ,creat or get new thread id with

getOrCreateThreadId(Context context, String recipient) 

recipient: a comma separated list of numbers

log1000
  • 587
  • 5
  • 17