• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Sending SMS from Emulator

 
Sachin Dere
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,
is it possible to send and recieve SMS from Emulator to an MMSC?
any info would be highly appreciated
thanks,
Sachin
 
Sachin Dere
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,
let me rephrase my question. is it possible to send/recieve sms from an emulator?it has to go via telco and not from one emulator to another. is this possible?we have NowSMS as gateway but im not sure how to link it to the emulator?
These are the URLs but im not sure how to link the MMSC gateway to this
sms://+417034967891
sms://+417034967891:5678
sms://:5678
cbs://:5678

String url = "sms://:5678"; // no phone number!

try {
conn = (MessageConnection) Connector.open( url );
while( true ){
Message msg = conn.receive(); // blocks
if( msg instanceof BinaryMessage ){
byte[] data =
((BinaryMessage) msg).getPayloadData();
// do something here
} else {
String text =
((TextMessage) msg).getPayloadText();
// do something here
}
}
}

please help me here,.
thanks,
Sac
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic