Notify a BlackBerry device application that an SMS message is about to be sent

  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);
Next topic: Send a message

Was this information helpful? Send us your comments.