BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 10-11-2007, 10:24 AM   #1 (permalink)
New Member
 
Join Date: Oct 2007
Model: 8300
PIN: N/A
Carrier: vodafone
Posts: 1
Post Thanks: 0
Thanked 0 Times in 0 Posts
Post Problem sending sms

Please Login to Remove!

Hi everybody !

I'm trying to simply send a sms to a recipient via J2ME. Is there any way to send a sms without signing the application ?

Here's the code i tested so far:

MessageConnection connection = (MessageConnection) Connector.open("sms://");

TextMessage message = (TextMessage)

connection.newMessage(MessageConnection.TEXT_MESSA GE);

message.setPayloadText(smsText.toString());
message.setAddress("sms://" + receiveNumber);

connection.send(message);


This code blocks in the send() method and doesn't return.

I also tried to set the recipient number in Connector.open() like this:

sms://+123456789

and it resulted in a IllegalArgumentException

Any hints or ideas ?

Thanks in advance,
Andre
Offline  
Old 10-11-2007, 10:33 AM   #2 (permalink)
Thumbs Must Hurt
 
Join Date: May 2007
Location: Bulgaria
Model: none
PIN: N/A
Carrier: Mtel
Posts: 150
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Can you tell me a way to send sms with specified text ?

It is not exactly the same but maybe it will help you.
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

143186 New-No Box, Toshiba C3-65N Starter 45A 3PH 600V Max, Coil:460-480V
$221.43
143186 New-No Box, Toshiba C3-65N Starter 45A 3PH 600V Max, Coil:460-480V  picturePYTHON EXT-H2HCOIL YELLOW COIL TETHERS lot of 2
$29.99
PYTHON EXT-H2HCOIL YELLOW COIL TETHERS lot of 2 picture143163 New In Box, Cutler-Hammer C10CN3A Contactor, 27A, Coil: 120V@60HZ, 3P, 3P
$491.55
143163 New In Box, Cutler-Hammer C10CN3A Contactor, 27A, Coil: 120V@60HZ, 3P, 3P picture143156 New In Box, Siemens 14HP32AG81 Starter, 90A, Coil: 220-240V@60HZ, 3Phase
$441.23
143156 New In Box, Siemens 14HP32AG81 Starter, 90A, Coil: 220-240V@60HZ, 3Phase picture143149 Old-Stock, AFECO 1837001212 Solenoid Coil 110/50-115/60V
$84.03
143149 Old-Stock, AFECO 1837001212 Solenoid Coil 110/50-115/60V picture






Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.