Click here to Skip to main content
15,611,156 members
Home / Discussions / Mobile
   

Mobile

 
GeneralRe: Send sms multiple recipients Pin
Richard MacCutchan9-Mar-11 10:30
mveRichard MacCutchan9-Mar-11 10:30 
AnswerRe: Send sms multiple recipients Pin
parths1-Mar-11 4:02
parths1-Mar-11 4:02 
GeneralRe: Send sms multiple recipients Pin
Richard MacCutchan1-Mar-11 5:07
mveRichard MacCutchan1-Mar-11 5:07 
GeneralRe: Send sms multiple recipients Pin
parths1-Mar-11 20:46
parths1-Mar-11 20:46 
GeneralRe: Send sms multiple recipients Pin
Richard MacCutchan1-Mar-11 21:45
mveRichard MacCutchan1-Mar-11 21:45 
GeneralRe: Send sms multiple recipients Pin
parths1-Mar-11 23:00
parths1-Mar-11 23:00 
GeneralRe: Send sms multiple recipients Pin
MsmVc1-Mar-11 18:21
MsmVc1-Mar-11 18:21 
GeneralRe: Send sms multiple recipients Pin
parths1-Mar-11 21:38
parths1-Mar-11 21:38 
Well, this worked for me.
package com.partho.smstomany;

import android.app.Activity;
import android.os.Bundle;

import android.content.Intent;
import android.net.Uri;

import java.util.StringTokenizer;
import android.app.PendingIntent;
import android.telephony.SmsManager;

public class pSMSToMany extends Activity
{
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);

		String message = "Some Message";
        String phoneNo = "5556;5558";
		
		StringTokenizer st=new StringTokenizer(phoneNo,";");
		while (st.hasMoreElements())
		{
			String tempMobileNumber = (String)st.nextElement();
			if(tempMobileNumber.length()>0 && message.trim().length()>0) {
				SmsManager sms = SmsManager.getDefault();
				sms.sendTextMessage(tempMobileNumber, null, message, null, null);    
			}
		}
    }
}


Actual code from Here[^]. Dumbed down to try it out.


"It was when I found out I could make mistakes that I knew I was on to something."
-Ornette Coleman

"Philosophy is a study that lets us be unhappy more intelligently."
-Anon.



Questionjava ME + bluetooth problem with device discovery [modified] Pin
mk_426-Feb-11 9:08
mk_426-Feb-11 9:08 
AnswerRe: java ME + bluetooth problem with device discovery Pin
Peter_in_278028-Feb-11 17:37
professionalPeter_in_278028-Feb-11 17:37 
GeneralRe: java ME + bluetooth problem with device discovery [modified] Pin
mk_41-Mar-11 5:24
mk_41-Mar-11 5:24 
AnswerRe: java ME + bluetooth problem with device discovery Pin
Peter_in_27802-Mar-11 13:39
professionalPeter_in_27802-Mar-11 13:39 
QuestionCan't find PInvoke DLL 'ril.dll'. Pin
Eric Nzai25-Feb-11 3:04
Eric Nzai25-Feb-11 3:04 
AnswerRe: Can't find PInvoke DLL 'ril.dll'. Pin
JudyL_MD28-Feb-11 16:00
JudyL_MD28-Feb-11 16:00 
QuestionAndroid Hidden Pin
MsmVc24-Feb-11 18:55
MsmVc24-Feb-11 18:55 
AnswerRe: Android Hidden Pin
parths27-Feb-11 20:27
parths27-Feb-11 20:27 
GeneralRe: Android Hidden Pin
MsmVc27-Feb-11 20:50
MsmVc27-Feb-11 20:50 
GeneralRe: Android Hidden Pin
Vimalsoft(Pty) Ltd1-Mar-11 1:41
professionalVimalsoft(Pty) Ltd1-Mar-11 1:41 
GeneralRe: Android Hidden Pin
MsmVc1-Mar-11 1:44
MsmVc1-Mar-11 1:44 
Questionhow to Mark and Pick row number 1 on DataGrid when the form load ? Pin
goldsoft23-Feb-11 19:10
goldsoft23-Feb-11 19:10 
QuestionHow to upload zip file in j2me for Lava mobile Pin
pramod.singh.marshal23-Feb-11 1:07
pramod.singh.marshal23-Feb-11 1:07 
QuestionSending SMS in PDu mode programatically in VB.Net Pin
JayKhatri21-Feb-11 15:48
JayKhatri21-Feb-11 15:48 
AnswerRe: Sending SMS in PDu mode programatically in VB.Net Pin
a.mlw.walker3-Jul-11 9:06
a.mlw.walker3-Jul-11 9:06 
Questionwhich modem is better for sending sms via AT commands Pin
aeman21-Feb-11 5:35
aeman21-Feb-11 5:35 
QuestionHow to connect to sql server 2008 through windows mobile 6 Pin
daneshkohan19-Feb-11 23:28
daneshkohan19-Feb-11 23:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.