BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 09-30-2009, 06:55 AM   #1
sumita
New Member
 
Join Date: Sep 2009
Model: 8320
PIN: N/A
Carrier: reliance
Posts: 1
Default problem in sms sending

Please Login to Remove!

hi i am new to blackberry.i have created an app for sending sms.but its not working on the actual handheld blackberry curve 8320.it is not giving any exception even.here is the source code


String address ="sms://"+phoneNumber+":3590";

MessageConnection smsconn = null;
try {
// Open the message connection.
smsconn = (MessageConnection) Connector.open(address);
// Create the message.
System.out.println(address+"address");
Message txtmessage = (Message) smsconn
.newMessage(MessageConnection.TEXT_MESSAGE);
//txtmessage.setAddress(address);// !!
txtmessage.setPayloadText(message);
System.out.println(txtmessage+"sms text");
smsconn.send(txtmessage);
System.out.println("sms is sent");

please help me any way
Offline  
Old 09-30-2009, 07:59 AM   #2
jbairdjr
BlackBerry Extraordinaire
 
jbairdjr's Avatar
 
Join Date: Feb 2005
Location: Lincoln, Ne
Model: 9550
OS: 5.0
Carrier: Verizon
Posts: 1,232
Default

Why would you need an app to send SMS?
__________________
Blackberry Storm2 (Verizon)
7280-7780-7290-7100g-7250-8703-8830-8330-9530-9550
Offline  
Closed Thread



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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


Grandstream GXP2160 VoIP IP Phone Color Gigabit Enterprise HD 6 Line PoE Black picture

Grandstream GXP2160 VoIP IP Phone Color Gigabit Enterprise HD 6 Line PoE Black

$37.98



Polycom SoundStation IP 6000 VoIP Conference Phone - No cords, No Accessories picture

Polycom SoundStation IP 6000 VoIP Conference Phone - No cords, No Accessories

$18.00



Polycom VVX 501 VoIP IP Phone & Stand Blem Warranty VVX501 2201-48500-001 picture

Polycom VVX 501 VoIP IP Phone & Stand Blem Warranty VVX501 2201-48500-001

$14.98



GAI-Tronics 276-002BH Behavioral Health VoIP phone -Volume Control, Indoor, PSTN picture

GAI-Tronics 276-002BH Behavioral Health VoIP phone -Volume Control, Indoor, PSTN

$179.99



Cisco Business Office Phone CP-7942G/CP-7942 Unified IP  VoIP Display POE picture

Cisco Business Office Phone CP-7942G/CP-7942 Unified IP VoIP Display POE

$14.62



Vtech ErisTerminal VSP861 Touchscreen Color Desktop - Voice-Over-IP VOIP Phone picture

Vtech ErisTerminal VSP861 Touchscreen Color Desktop - Voice-Over-IP VOIP Phone

$14.99







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