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

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,808
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



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


Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
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.