Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
New Developer
Posts: 6
Registered: ‎02-20-2009
My Device: Not Specified

SMS Message Tracking

Just looking at a concept here. When I listen for an SMS message, I assume my app will intercept the message before it hits the BB SMS app but let it through untouched. Is there are way I can identify the message my app received with the one the BB SMS app has.

 

I know I could use get.address, and get.timestamp, or compare the payloadtext but does anyone know if there is a unique code in the header of an SMS to uniquely identify individual messages? (e.g the same sender could send multiple messages with the same content in quick succession)

BlackBerry Development Advisor
Posts: 15,752
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: SMS Message Tracking

Applications are only able to capture SMS messages when they arrive.  It is not possible to read SMS messages that have already been delivered.  So you won't have anything to compare against.

 

What is - Different ways to listen for SMS messages
Article Number: DB-00579

http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800451/800563/What_Is...

 

This article explains how to prevent an SMS message from showing up in the BlackBerry Inbox.

 

How To - Use SMS to notify an application 
Article Number: DB-00533

http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800451/800563/How_To_...

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Regular Contributor
Posts: 95
Registered: ‎07-16-2010
My Device: 8520
My Carrier: bsnl

Re: SMS Message Tracking

things work for me

 

1. Import the required classes and interfaces.
import net.rim.blackberry.api.sms.SendListener;
import net.rim.blackberry.api.sms.SMS;
2. Create a class that implements the SendListener interface.
public class smsSendListener implements SendListener{...}
3. Create an instance of the class that implements the SendListener interface.
smsSendListener smsSL = new smsSendListener();
4. Add a SendListener.
SMS.addSendListener(smsSL);

 

http://docs.blackberry.com/en/developers/deliverables/11934/JDE_5.0_IntegrationGuide-Beta.pdf