BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 10-09-2008, 07:33 AM   #1
MobileDeveloper
Thumbs Must Hurt
 
Join Date: Jun 2008
Model: 8100
PIN: N/A
Carrier: Vodafone
Posts: 134
Default How to Listen to SMS and read it automatically

Please Login to Remove!

Hi

Does any know how to implement a code that will let me listen for incoming SMS and also read the SMS ?
Offline  
Old 10-09-2008, 08:10 AM   #2
amutzmercier
New Member
 
Join Date: Jul 2007
Model: 8800
PIN: N/A
Carrier: Cingular
Posts: 11
Default

There are samples on the BlackBerry developers sight. It is the same code as listening for emails, as all messages come into the Inbox
Offline  
Old 10-09-2008, 08:36 AM   #3
Dougsg38p
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Default

You cannot listen for SMS the same as email.

You have to create an SMS Message connection and listen for the messages on the SMS port.

See the KB article here:

Livelink - Redirection
Offline  
Old 10-09-2008, 10:11 AM   #4
MobileDeveloper
Thumbs Must Hurt
 
Join Date: Jun 2008
Model: 8100
PIN: N/A
Carrier: Vodafone
Posts: 134
Default

Quote:
Originally Posted by Dougsg38p View Post
You cannot listen for SMS the same as email.

You have to create an SMS Message connection and listen for the messages on the SMS port.

See the KB article here:

Livelink - Redirection
Hi

I tried that code but in the line

(DatagramConnection)Connector.open("sms://");

the part after sms:// is commented out and so the code is throwing errors

What should I do to overcome that bug ?
Offline  
Old 10-09-2008, 11:11 AM   #5
Dougsg38p
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Default

try "sms://:0"
Offline  
Old 10-09-2008, 11:13 AM   #6
Dougsg38p
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Default

here is the code:

m_connection = (MessageConnection) Connector.open("sms://:0");
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

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

Forum Jump


MITSUBISHI Amplifier MR-J2S-200B MRJ2S200B AC Servo Drive New in box picture

MITSUBISHI Amplifier MR-J2S-200B MRJ2S200B AC Servo Drive New in box

$489.00



Branson 902J Ultrasonic Welder  Transducer Amplifier & Horn 101149098,416026021 picture

Branson 902J Ultrasonic Welder Transducer Amplifier & Horn 101149098,416026021

$539.10



1PCS FANUC Servo Amplifier A06B-6114-H202  picture

1PCS FANUC Servo Amplifier A06B-6114-H202

$1447.51



Natus Nicolet AT2+6 CHANNEL AMPLIFIER w/ LCD Monitor and Cart picture

Natus Nicolet AT2+6 CHANNEL AMPLIFIER w/ LCD Monitor and Cart

$4999.00



WPI world precision instruments DAM 80 AC Differential Amplifier EUC No Probe picture

WPI world precision instruments DAM 80 AC Differential Amplifier EUC No Probe

$399.99



Rexroth VT-5041-30/1-0 analog amplifier board picture

Rexroth VT-5041-30/1-0 analog amplifier board

$425.00







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