There are several days that I look for a solution of my problem :
I develop an application which allows to send SMS.
So, if I wish to send a grouped SMS since a htc, it’s impossible because the separator character has to be a semicolon (;). Thus if in my Java code I replace my comma (,) by a semicolon (;) it works for the htc, but no more for others Androphones.
Have somebody any idea ? Knowing that I had thought of detecting the model of the androphone but it is impossible, no class exists below API LEVEL 12. (I use API LEVEL 7 and I don’t have to change)
For more information see usb device name.
My JAVA code :
for(int i = 0; i < listProches.size(); i++) {
phoneNumbers = phoneNumbers + listProches.get(i).getTelephone()+";";
}
phoneNumbers = phoneNumbers.substring(0, phoneNumbers.lastIndexOf(";"));
Intent smsIntent = new Intent(Intent.ACTION_SENDTO,Uri.parse("smsto:" + phoneNumbers));
smsIntent.putExtra("sms_body", popupTexte);
startActivity(smsIntent);
Thanks for your help !
I found a solution concerning my problem on htc. As I said to you, I tried to return how the MANUFACTURER of the androphone, and after detailed researches I found!!!
I give you the answer, and it works from API LEVEL 1 :
See more details here