Intercept specific incoming SMS

Is it possible to intercept specific incoming SMS?

Ex:

I want to intercept all the SMS phone number + 1234567890

Welcome on the support forums.

Please use the search box at top right, it would give you results can be used as http://supportforums.blackberry.com/t5/Java-Development/Block-sms-from-specific-number/m-p/1348097#M...

Tags: BlackBerry Developers

Similar Questions

  • intercept and remove SMS before it goes to the Inbox

    Hello

    I just want to know if there is

    I would like to know is there of the means by which we can intercept incoming SMS, treat it and delete it before that he go to the Inbox. My main goal is not to show this SMS in the Inbox and I want to treat this thing on the side of receiver .i would be able to launch code to manage the SMS when it is received. Counsel on the question of whether this is technically possible and what are the options I have if there is more than one way, would be greatly appreciated

    I never found a way to keep a regular htting SMS Inbox. You * can * do that if you control the server, by setting certain properties in the message header.

    If you search the forum, you will find many discussions on the issue.

    It * is * possible to listen for SMS and firing an event on arrival.

    http://supportforums.BlackBerry.com/T5/Java-development/different-ways-to-listen-for-SMS-messages/TA...

  • No incoming SMS sound heard

    Hello

    I have two iPhones one is version 5 and the second is 5 s version.

    Both are updated to the latest version of iOS.

    In my worm. 5 s when entering SMS comes the iPhone gives alert music.

    The problem is with another iPhone 5 that when entering SMS happens no sounds are heard.

    I tried to compare the configurations, but found no difference between the two.

    I have to lack the question.

    Where can I configure the iPhone 5 to produce music for the arrival of incoming SMS alert.

    Thank you

    I would add: no mute is on. It is not Nothing disturbs mode

    Try updating to the latest iOS

    Also try to put in a different sound for text in settings - sounds

    Force restart the phone and see if the SMS produced the new sound

  • deleting incoming sms in the Inbox

    Anyone know how to remove sms all inbox.

    I can't find a solution in the API.

    Not that new look or sms outgoin.

    Never click on a URL from the tiny type that you never know where he's going to do. If you trust the site, never click on the links to the full URL:

    http://supportforums.BlackBerry.com/T5/Java-development/deleting-incoming-SMS-from-Inbox/TD-p/592620

    AndreyMM,

    He doesn't know the rest of the code. Try searching Google or even Crackberry post as they usually come from assets

  • How to receive as net.rim.blackberry.api.mail.Message When listening for incoming sms?

    There are 3 types of ways to listen for incoming sms in the following link:

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

    All those who receive the javax.wireless.messaging.Message for further processing.

    I need to check the priority of the message received, which is only available in net.rim.blackberry.api.mail.Message and not javax.wireless.messaging.Message.

    Can someone guide me to get the net.rim.blackberry.api.mail.Message When listening for incoming sms?

    Thank you.

    Net.rim.blackberry.api.mail.Message is actually for mails not for sms

    Press the button Bravo thank the user who has helped you.

    If your problem has been resolved then please mark the thread as "accepted Solution".

  • Mark as read incoming sms

    OK, I could read/catch all incoming sms using a small piece of code but all these sms are also in the sms Inbox as unread.

    How can I mark as read?

    You cannot programmatically change the SMS Inbox.

  • How to detect an incomming SMS? -HELPPPP

    Hello everyone,

    This is my first post in this forum. So far, it has helped me a lot. But since a few days, I have had a problem. I want to detect an incomming SMS. I read some post and I found a few pieces of codes that are interesting. But, I failed to do so.

    Here are a few links I've read:

    -http://www.j2mepolish.org/javadoc/j2me/de/enough/polish/messaging/MessageListener.html

    -http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800451/800563/What _...

    - http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800451/800563/How_To _...

    - http://supportforums.blackberry.com/t5/Java-Development/notifyIncomingMessage-only-called-for-first-...

    - http://supportforums.blackberry.com/t5/Java-Development/How-to-listen-to-incoming-sms-message-only/m...

    I will stop here with links.

    Now, here is my code:

    /*
     * hw.java
     *
     * © , 2003-2008
     * Confidential and proprietary.
     */
    
    import java.util.*;
    import java.lang.*;
    import java.io.*;
    import java.io.IOException;
    import javax.microedition.location.*;
    import javax.microedition.io.*;
    import javax.microedition.io.file.*;
    import javax.microedition.pim.*;
    import javax.wireless.messaging.*;
    import net.rim.device.api.io.*;
    import net.rim.device.api.ui.*;
    import net.rim.device.api.ui.component.*;
    import net.rim.device.api.ui.container.*;
    import net.rim.device.api.system.*;
    import net.rim.device.api.i18n.*;
    import net.rim.blackberry.api.invoke.*;
    
    /**
     *
     */
    class hw extends UiApplication {
        public static void main(String[] args)
        {
            hw instance = new hw();
            instance.enterEventDispatcher();
        }
        public hw()
        {
            pushScreen(new SalutationScreen());
        }
    }
    
    class SalutationScreen extends MainScreen implements Runnable //, MessageListener
    {
        private Thread t;
        private MessageConnection _mc;
    
        public SalutationScreen()
        {
            super();
            LabelField applicationTitle =
                new LabelField("Hello World Title");
            setTitle(applicationTitle);
            RichTextField helloWorldTextField = new RichTextField("Hello World!");
            add(helloWorldTextField);
    
            t = new Thread(this);
            t.start();
    /*
            try {
                _mc = (MessageConnection)Connector.open("sms://:0");
                _mc.setMessageListener(this);
                helloWorldTextField = new RichTextField("setMessageListener : done");
                add(helloWorldTextField);
            }
            catch (IOException e) {
                helloWorldTextField = new RichTextField("erreur constructeur : " + e);
                add(helloWorldTextField);
            }
    */
        }
    
        public boolean onClose()
        {
            Dialog.alert("Bye World!");
            System.exit(0);
                    return true;
        }
    
        public void run()
        {
            try{
                DatagramConnection _dc = (DatagramConnection)Connector.open("sms://:0");
    
                for(;;)
                {
                    Datagram d = _dc.newDatagram(_dc.getMaximumLength());
                    _dc.receive(d);
                    byte[] bytes = d.getData();
                    String address = d.getAddress();
                    String msg = new String(bytes);
    
                    helloWorldTextField = new RichTextField("  Message text received : " + msg );
                    add(helloWorldTextField);
                }
            }
            catch(Exception e){}
    
    /* METHOD 2
            while(true)
            {
                try
                {
                    DatagramConnection _dc = (DatagramConnection)Connector.open("sms://");
                    Datagram d = _dc.newDatagram(_dc.getMaximumLength());
                    _dc.receive(d);
                    String address = new String(d.getAddress());
                    String msg = new String(d.getData()); 
    
                    helloWorldTextField = new RichTextField("Message received: " + msg + "\n" + address);
                    add(helloWorldTextField);
                    Alert.startVibrate(3000);
                }
                catch (IOException e)
                {
                        System.err.println(e.toString());
                }
            }
    */           
    
    /*  METHOD 3
            try {
                MessageConnection _mc = (MessageConnection)Connector.open("sms://:0");
    
                for(;;)
                {
                    Message m = _mc.receive();
                    String address = m.getAddress();
                    String msg = null;
                    if ( m instanceof TextMessage )
                    {
                        TextMessage tm = (TextMessage)m;
                        msg = tm.getPayloadText();
                    }
                    else if (m instanceof BinaryMessage) {
    
                        StringBuffer buf = new StringBuffer();
                        byte[] data = ((BinaryMessage) m).getPayloadData();
                        // convert Binary Data to Text
                        msg = new String(data, "UTF-8");
                    }
                    else
                        System.out.println("Invalid Message Format");
    
                    RichTextField helloWorldTextField = new RichTextField("Received SMS text from " + address + "\n" + msg);
                    add(helloWorldTextField);
                }
        }
        catch (IOException e)
        {
                System.err.println(e.toString());
        }
    */
        }
    
    /*  METHOD 4
            public void notifyIncomingMessage(MessageConnection conn) {
                RichTextField helloWorldTextField = new RichTextField("notifyIncomingMessage DEBUT");
                add(helloWorldTextField);                
    
                try {
                    Message m = conn.receive();
                    helloWorldTextField = new RichTextField("- Message recu");
                    add(helloWorldTextField);                
    
                    String address = m.getAddress();
                    String msg = null;
    
                    if ( m instanceof TextMessage )
                    {
                        TextMessage tm = (TextMessage)m;
                        msg = tm.getPayloadText();
                    }
                    else if (m instanceof BinaryMessage) {
                        StringBuffer buf = new StringBuffer();
                        byte[] data = ((BinaryMessage) m).getPayloadData();
    
                        // convert Binary Data to Text
                        msg = new String(data, "UTF-8");
                    }
                    else
                        System.out.println("Invalid Message Format");
    
                    helloWorldTextField = new RichTextField("- Message de : " + address + " // \""+ msg + "\"");
                    add(helloWorldTextField);
                }
                catch (IOException e) {
                    helloWorldTextField = new RichTextField("erreur _mc.receive : " + e);
                    add(helloWorldTextField);
                }
    
            }
    */
    
    /*  METHOD 5
            public void notifyIncomingMessage(MessageConnection messageConnection)
            {
                new Thread()
                {
                    MessageConnection conn;
                    Thread set(MessageConnection conn)
                    {
                        this.conn = conn;
                        return (this);
                    }
                    public void run()
                    {
                        try
                        {
                            Message m = conn.receive();
                            String msg = null;
    
                            if ( m instanceof TextMessage)
                            {
                                TextMessage tm = (TextMessage) m;
                                msg = tm.getPayloadText();
    
                                RichTextField helloWorldTextField = new RichTextField("- Message de : " + m.getAddress() + " // \""+ msg + "\"");
                                this.add(helloWorldTextField);
                            }
                        }
                        catch (Exception e)
                        {
                        }
                    }
                }.set(messageConnection).start();
            }
    */
    }
    

    In my code, I tested 5 methods. But, I think that all of them blocked the line where there is method of 'received() '.

    If there is someone who can help me find my problem, it's going to be great. (Or if there is someone who wants to send me a complete code that works, it will be better than the grand )

    Thank you for all the answers.

    I agree with you. It's better if I post a solution.

    I have re-written some other program that gets the phone number and the content of the incomming SMS.

    Here is my code

    public class smsReceived extends UiApplication
    {
        private LabelField _status;
        private DatagramConnection _dc;
    
        public static void main(String[] args)
        {
            new smsReceived().enterEventDispatcher();
        }
    
        public smsReceived()
        {
            super();
            waitASms();
       }
    
        public void waitASms()
        {
            try
            {
                _dc = (DatagramConnection)Connector.open("sms://");
                for(;;)
                {
                    Datagram d = _dc.newDatagram(_dc.getMaximumLength());
                    _dc.receive(d);
                    String address = new String(d.getAddress());
                    String msg = new String(d.getData());
                }
            }
            catch (IOException e)
            {
                System.err.println(e.toString());
            }
        }
    }
    

    In this code, the string 'address' is the phone number and the string 'msg' is the content.

    To view, please do another method with this channels.

    Next time.

  • FileSystemJournalListener and incoming SMS do not work together

    I need the two lisnner in my incoming sms app and added file listner

    SMS module

    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800451/800563/How_To _...

    and the listner added file is

    Application appInstance = Application.getApplication ();
    screen filesystemJournalListener = new filesystemJournalListener();
    appInstance.addFileSystemJournalListener (screen);

    both work very well sapratly but if I put the two together only sms worked listner file you added, but not work

    Please help and sorry for the bad English

    You put the interface of the camera in a Thread, and not the SMS interface.

  • intercept an incoming call to show who he is

    is it possible to intercept an incoming call, and then to display a screen of my application?

    I have a small application that lists a few people on a database that is downloaded from our internal company server.

    If the user of my application is called, I would like to find the phone number in this database, and if I find the person calling, I would like to show its information to the screen. is it possible somehow?

    http://www.BlackBerry.com/developers/docs/6.0.0api/NET/RIM/BlackBerry/API/phone/PhoneListener.html

  • How to listen only to the incoming sms message

    I want only to hear incoming sms do message not MMA, how.

    See this Article.

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

    SMS to notify the application, look at this article.

    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800451/800563/How_To _...

  • listen to incoming sms does not

    I am currently listening to incoming binary sms in a particular port. I am able to do this. But the problem is that, if I print the msg in the console, its empty display, but the chain even if I call a dialog.alert, it displays in the dialog box. Help, please.

    Hello

    Here go us

    public boolean onClose() {}
    UiApplication.getUiApplication () .requestBackground ();
    Returns true;
    }

  • BlackBerry 10 blocking of an incoming SMS

    Good day for about 3 months now, I received a SMS that I don't know who it was from or if it is a Bug or what. Ihavejustbeendeletingit.

    The Message is

    {DELETED} telephone number

    message: Please keep this message from Matthew IMEI: {DELETED}.

    I have a way that you could help me. I don't understand. I don't know where to turn.

    Thanks, Denise

    MOD Edit: Remove information staff to comply with the Community guidelines and the terms and Conditions of use.

    Sorry!

    You cannot block one person or the number to send SMS... Please chsek the link below...

    http://helpblog.BlackBerry.com/2011/11/BlackBerry-message-block/

    Thank you

  • incoming SMS listener test

    Hi all. Writing a listener SMS coming that I want to test. But can someone please pass me how I can configure the SDK BB 5 (not the Eclipse plugin) running on Windows 7, so that I can send an SMS to test an emulator to another to see what is happening. Thank you so much as always.

    Found answer in another post from Kanaksony. His response was to use 1 emulator with the following:

    You need to sms-source port and sms-destination ports even in Simulator. Go to JDE-> Edit-> preferences-> tab-> port sms-source Simulator: 21316 and port destination sms: 21316

  • How different incoming sms to mms?

    Hi, I have a problem with grateful ig sms or mms came. I have this code:

    public void incomingSms(){
    
    try{
     MessageConnection _sms = (MessageConnection)
                Connector.open("sms://:0");
            _sms.setMessageListener(this);
    
            }catch(Exception e){}
        }//end of incomingSms() method
    
        public void notifyIncomingMessage(MessageConnection _ms){
    
            try{
                _ms.receive();
                Dialog.alert("sms came");
            }catch(Exception e){}
    
        }//end of notifyIncomingMessage() method
    

    but here - either an sms or mms came in i've got this alert "sms has come." When I try to apply the same code but using:

    MessageConnection _mms = (MessageConnection)

    Connector.Open("MMS://:0");

    I don't get an alert (or mms or sms) it seems that he didn't get the message.

    What is the problem with my implementation doesn't corectlly?

    Kind regards

    _Ms.recieve () returns the Message, you can check this Message is the text body and differentiate.

  • BlackBerry Smartphones Distinct email tone for specific incoming emails

    How can I make my ringtone blackberry curve a tone/distinctive ring when I get an email from a particular person.  Our team runs on call each week and I'll try to find a way to make the phone ring somehow with the e-mail from our technical department.

    I appreciate any help you can give.

    Thank you and keep your stick on the ice!

    James

    Distinctive tone for e-mail to nobody in particular is not possible. But you can have a distinct tone for each e-mail ID built into your device.

Maybe you are looking for

  • Why Ctrl + right arrow doesn't ignore the last word in a paragraph?

    Just fossoyée Chrome and Firefox installed on Windows 10. Overall excellent experience with a complaint. When I write an e-mail, Ctrl + right arrow behaves as expected, except at the end of a paragraph when he jumps the last word and jump to the next

  • Behavior of Safari abnormally

    My Safari starts to act up all of a sudden, arise randomly windows. The Safari URL to direct me towards are made at Jelix.org. Anomalous behavior of Safari annoy me. How can I get rid of it completely?

  • Firefox has been a problem and crashed

    I had this "Firefox has a problem and crashed," started this morning. It overwrites every time when I tried to start it, even with safe mode. I tried to uninstall and reinstall Firefox. But it does not solve the problem. Here is the list of the crush

  • Any chance you get the status bar?

    Any chance can get you the status bar, because all updates FF28 past do not have the status bar which is where most of my favorite Addons are located (for example, eQuake Alert and ForecastFox. It's really annoying. I had to disable the automatic upd

  • Error 85 happening for digital channels 4-digit

    Hello I have a labview program that measures the current tension at vs for a field emission device. The problem I'm having is I receive the error message 85 each time my current measurment reached 4 digits, for example, 1000 AU. I read that the 85 er