-Contact SMS listener?

Hi all

I put in place of the SMS listener and I am able to get the device number but I'm not able to get the name of the contact to shippers. Any one know how to get contact name of entrants and SMS-password.

Thank you

got the solution here:- recover contacts by phone number

Tags: BlackBerry Developers

Similar Questions

  • How to test the SMS listener using 2 emulators in SDK5 running Windows 7

    Hi all. Writing a SMS listener 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 a test SMS from an emulator to another to see what is happening in the debugger. Thank you so much as always.

    Found answer in another post from Kanaksony. His response has been to make the source and destination for even 1 emulator ports. His post was:

    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

  • SMS listener

    Hi - just wondering if he had plans to make available a way to implement a SMS listener for incoming SMS messages / outgoing (this was possible on the old Java SDK). I don't see anything equivalent in the latest SDKS, neither on the road map.

    Thanks in advance :-)

    Hello

    in fact, we already support something very similar to the listeners of the Java platform.

    SMS is part of the PIM API and the key classes

    bb::pim::message::SmsTransport.
    

    This class allows (among other things) registration for incoming SMS messages addressed to a specific port. You will receive SMS messages to port and be able to extract their payload as a byte array. The class uses Qt signals and slots, so it is quite easy to use. Here are a few snippets of code to help you get started:

    in the header

    public slots:
    void onMessageReceived(unsigned int, const Message &);
    void onRegisterResultReceived(unsigned int port, bb::pim::message::SmsTransportRegistrationResult::Type status );
    
    private:
    bb::pim::message::SmsTransport* _sms_transport;
    

    in the source of the CPP, my class called SmsReceiver:

    SmsReceiver::SmsReceiver(bb::cascades::Application *app) :
       QObject(app), _initialised_ok(false), _sms_transport(new bb::pim::message::SmsTransport(this)) {
    
        connect(_sms_transport, SIGNAL(registerResultReceived (unsigned int,
                        bb::pim::message::SmsTransportRegistrationResult::Type)), this,
                       SLOT(onRegisterResultReceived(unsigned int,
                                                                       bb::pim::message::SmsTransportRegistrationResult::Type)));
    
        connect(_sms_transport, SIGNAL(messageReceived (unsigned int, const Message &)), this,
                       SLOT(onMessageReceived(unsigned int, const Message &)));
    
        // registering to receive SMS messages addressed to port 16000
        _sms_transport->registerPort(16000);
    }
    
    void SmsReceiver::onRegisterResultReceived(unsigned int port, bb::pim::message::SmsTransportRegistrationResult::Type status) {
    
        if (status == 1) {
            log(QString("Port %1 registered OK").arg(port));
        } else {
            log("Failed to register port:" + status);
            log("Error:" + getResultReceivedName(status));
        }
    
    }
    
    void SmsReceiver::onMessageReceived(unsigned int port, const Message& message) {
    
      // the short_message payload is an Attachment to the PIM Message object and the .data() method returns it as a byte array
        bb::pim::message::Attachment attachment = message.attachmentAt(0);
        hexlog(attachment.data());
    
    }
    

    Key points:

    • registration will succeed or fail, and you must use the registerResultReceived signal to receive the notification of the result of this step.
    • When a message to your registered port is received by the operating system, a signal messageReceived sounds then you must connect one of your methods of this signal. Your slot will receive a Message object. The attribute short_message of the SMS ("short_message" by GSM 03.40) will be given an object attachment associated with the subject of the Message. Retrieves the attachment object and call the data() function to get short_message as a byte array. Note that to properly decode the array of bytes that you really know his what data_coding value has been used when you create and send the SMS message and whether or not a header (UDH) user data is present.

    I hope this helps.

    Martin

  • SMS for outgoing SMS listener throws IOException immediately after the open call

    I had already created a class for sending SMS messages which worked perfectly until I added the listener. When the listener is added as soon as I start the thread throws an IOException exception who am I hurting? The only thing I can think is some kind of wire problem, please help.

    Here's the SMS & Listener class:

    private static final class SmsMessage    {        private String _address;        private String _msg;
    
            public SmsMessage(String address, String msg)        {            _address = address;            _msg = msg;        }
    
            public Message toMessage(MessageConnection mc)        {            TextMessage m = (TextMessage)mc.newMessage(MessageConnection.TEXT_MESSAGE,"sms://" + _address);            m.setPayloadText(_msg);            return m;        }    } // SmsMessage
    
       private final class SendThread extends Thread    {        private static final int TIMEOUT = 500; // ms        private Vector _msgs = new Vector(10); // Queue of 10        private volatile boolean _start = false;
    
            // queue requests        public synchronized void send(String address, String msg)        {            _start = true;            _msgs.addElement(new SmsMessage(address, msg));        }
    
            public synchronized void stop()        {            _stop = true;            try {                if ( _mc != null ){                    _mc.close();                }            } // catch (IOException e ) {                catch (Throwable t) {                t.printStackTrace();                System.exit(0);            }
    
            }
    
            public void run()        {            try {                //closed by the stop() method                _mc = (MessageConnection)Connector.open("sms://");
    
                    if (_mc != null)                {                    // set a listener to trap outgoing sms messages                    _mc.setMessageListener(new OutboundSMSListener());                }                for(;;)                {                    while( !_start && !_stop)                    {                        try {                            sleep(TIMEOUT);                        } // catch (InterruptedException e) {                            catch (Throwable t) {                                t.printStackTrace();                                System.exit(0);                            }                    }                    if ( _stop )                    {                        return;                    }
    
                        while(true)                    {                        try {                            SmsMessage sms = null;                            synchronized (this)                            {                                if ( !_msgs.isEmpty() )                                {                                    sms = (SmsMessage)_msgs.firstElement();                                    // take it out of the queue once we sent it                                    _msgs.removeElement(sms);                                }                                else                                {                                    _start = false;                                    break;                                }                            }
    
                                _mc.send(sms.toMessage(_mc));
    
                            } // catch (IOException e) {                            catch (Throwable t) {                                t.printStackTrace();                                System.exit(0);                        }                    }                }            } // catch (IOException e)              catch (Throwable t) {                t.printStackTrace();                System.exit(0);              }        }    } // SendThread
    
        private static final class OutboundSMSListener implements OutboundMessageListener    {        public void notifyIncomingMessage(MessageConnection messageconnection)        {            // we don't care about incoming sms messages right now        }
    
            public void notifyOutgoingMessage(Message message)        {            Dialog.alert("Detected An Outgoing SMS Event");        }    }
    

    Thank you. Makes sense.

  • BlackBerry Smartphones lost contacts, sms,... after the Bold 9780 upgrade to V6.0.0.546

    After that I upgraded my Bold 9780 to V6.0.0.546 it worked fine with all your contacts, sms, preferences.

    However, after 10 minutes, it restarted itself and I have found none of my contacts, sms, calendar,... I found my photoes!

    I don't have a manual backup, but I chose to leave the Device Manager to backup my data and restore during the normal upgrade.

    I have not found the .ipd file and. However I found the .bbb file I think that automatically does the Device Manager. His name is ".bbb LoaderBackup-(2012-09-16)".

    Now, my problem is that my device manager cannot recognize .bbb files. He acknowledges that .ipd files.

    I downloaded MagicBerry but may not loan my .bbb files. I tried another utility call "Blackberry Backup Extractor" it can read files in .bbb, but it requires registration and payment to extract more than 5 entries! In addition, you may not export to .ipd.

    HOW CAN I RESTORE MY DATA WITH THE HELP OF FILE BBB OR HOW I CAN EASILY CONVERT IT TO PI?

    ENJOY EMERGENCY ASSISTANCE PLEASE.

    Thanks to bifocals. I use windows XP. I tried to rename the bbb .zip file and extract, but it does not contain a file "Databases.ipd" or any in this regard .ipd file.

    I found the solution!

    I have improved the BB Desktop SW version 7.1.

    He acknowledged the .bbb file and I managed to do the restore

    Thanks for your help.

  • SMS listening by using Cascades SmsTransport

    I'm having some trouble with the SmsTransport api. The listeners for phone and email are simple and work great, but when I try and listen for sms I get this runtime warning:
    
    Warning: Object::connect: No such signal bb::pim::message::SmsTransport::messageReceived(unsigned int, const
    bb::pim::message::Message&) in ../src/App.cpp:58
    
    and this is the code that is the problem:
    
         mSmsTransport->registerPort(0);
         connect(mSmsTransport, SIGNAL(messageReceived(unsigned int, const bb::pim::message::Message&)), SLOT(handleSms(unsigned int, const bb::pim::message::Message&)));
    
    Maybe the method signature has changed from what is listed here?
    https://developer.blackberry.com/cascades/reference/bb__pim__message__smstransport.html
    
    Also related to this.. is 0 the correct port to register on to listen for SMS's? It worked this way on Java BB but I'm not sure about BB10.
    

    Patch the SDK to C:\devel\bbndk\target_10_0_9_2318\qnx6\usr\include\bb\pim\message\MessageUpdate.hpp and adding the line to the bottom of the file solves the problem. Not sure how it works for you, unless you have this line.

    Q_DECLARE_METATYPE (bb:im::message:MessageUpdate)

  • 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

  • Running the background (sms listening thread) connected to the GUI (another point of entry) application thread

    Hi, I'm new to the development of Blackberry, I read everything on the application running at startup and have a different point of entry for this application. I still need help with my application

    I use BB JDE 4.7

    Simulator: BB 9530 4.7.0

    I'm developing an application of SMS. (extends UiApplication)

    1) there is a thread that listens for incoming messages

    2) there is a wire which is a SMS sender

    3) there is a main screen and two full screens. for example, when the user clicks a button in one of the screens full... I send you a message

    (4) when a message is received, based on the content of the message I push either a full screen

    (5) I have, all the wires and screens as the class internal to the main class that extends from the UiApplication.

    I got the basic features. I need help making that demand the application of autostartup

    (1) I need to start listening to the sms thread when the BB phone starts

    (2) I need to have the application icon in the applications screen as another entry point for the application (only for the GUI), and the listening thread must remain active in the background.

    (3) when an incoming message is detected, the application GUI should be brought to the foreground (if it isn't already forground) after posting a popup (instead of bring the application to the foreground, is it better to display a flashing icon in the status bar of the home screen blackberry and perhaps global popup)

    (4) when the GUI of the application part is closed, I need to stop the sms sending thread, and when the system shuts down, I need to stop the listening thread.

    Please help me guys... I have read many articles and discussions regarding the automatic start-up of applications, another point of entry, the # of background threads...

    but I couldn't find how to implement my needs.

    (1) should I need to create two different projects (applications [GUI thread, a sender] and one for the listening thread)? or I can achieve in single application?

    (2) should I have to sign in the background thread to the GUI app? If so, how?

    (3) it is necessary to use the RunTimeStore object? If so, I don't know how I can bring to the foreground the application GUI of the background thread.

    (4) if I have to stop the thread of listening by overiding onExit() method, the important question I have is, if the onExit() method is only for applications that extends from the Application class and not for the UiApplication class?

    (5) if I should have two projects (one main and the other as a spare point entry), which project should I do as "autorun at startup" and a "system module".

    As I need to have the background still running thread when the GUI application is active. I don't know how I do.

    Hello world...

    I reached my needs thanks to a single application. I used an other entry point.

    To refer to chk my other post

    http://supportforums.BlackBerry.com/T5/Java-development/how-to-avoid-creating-two-instances-of-the-a...

  • Its Smartphones Custom Contact SMS blackBerry overrides his Email selected in the active profile

    OK - I've been googlig it ALL morning. I would like to know if there is a fix for this.

    I put a bunch of ringtones customized for friends and family, as I always have with my previous Blackberry (8310, 8900 and 9000) devices...

    With the 9700 When you change a ringtone to contacts, you will need to change the sound of their messages. Now I didn't have different sounds for different contacts when it came to mail, so, I selected just the noise I had chosen when customizing my normal profile in the hope that all texts of all users play the same sound. Text messaging works very well. However, emails... not so much. Because I HAD to change their sound messages, now - whenever I get an email from one of the contacts that have a custom ringtone, the tone of the text goes off instead of the email, I chose! I have emails and texts is going to separate folders... I guess this happens because the custom only option it gives me is to change users 'message' noise and not "sms or e-mail.

    I want to have custom ringtones for people when they call me and a tone for all sms/mms and a tone for all the emails. I am angry.

    I know that other people have this problem... Help someone. I want to throw my phone = /.

    [email protected]

    PIN: xxxxxxxxxx

    EDIT: Personal information removed - information such as the PIN & personal e-mails are prohibited for safety reasons. Please private Message (MP) this user.

    Hello katierestes,

    This feature is by design, custom messages alert applies to all messages (email, SMS, MMS), there is no option to specify TEXT of e-mail when you customize the alert contact.

  • BlackBerry smartphones HELP! trying to transfer contacts, sms texts, call logs, etc.

    I recently got a new 8120 pearl from T-Mobile to replace my 8100 Pearl of AT & T.

    I was running desktop manager 4.6 but upgraded to 5.0 for the switch.

    My old Pearl (8100) ran v4.5.0.110 and the new Pearl (8120) was running v.4.3.0.115

    I thought (oh how naïve) that I could just switch devices easily and elegantly with Desktop Manager, but my new camera has yet to be recognized by my computer.

    I went to swap devices in DM 5.0 and it all downloaded and stored on my drive.

    .. .but then he couldn't find my new Pearl.

    I went back in time (!) and DM 5.0 removed from my system and installed the DM that came with my new Pearl (4.3), hoping that it needed just an earlier version of the software to make it happen.

    No luck.

    Then I came across a thread that said I had to install new drivers USB (version 4.6) to make my PC will not recognize my phone.  I installed the drivers and they uninstalled my DM 5.0

    So I re-installed the DM (5.0) and tried again.  No luck.

    Now, my girlfriend is shouting at me saying: I was on the computer all day (on our day off) messing around with this stupid phone.

    Please, for the love of God, help me.

    I am running Windows XP.

    Thank you

    -jw

    Just to put the closure of this thread... I finally solved the problem, but in reality a harder time of it because of the thread you told me to follow.  The issue ended up being my usb drivers are not correct for the new device.  I did what the thread asked me to do this, install the drivers that came with the RIM software and these drivers my system crashed and I ended up having to do a full system restore.  I went to the Microsoft Windows Update Catalog and found the right drivers, installed, and then installed the Desktop Manager and everything is hunky-dory.

    Thanks for your help.

    -jw

  • Transfer sms Lenovo S650

    Hello

    I recently bought a Lenovo s650, up to now, it has been good. But I need to transfer sms messages from my old Samsung S Duets for this new phone, which is the best method, or app, to do this?

    Thank you

    Edwin.

    I suggest that you use the "SHAREit", it can transfer contacts, sms, photos and so on between phones with wifi or bluetooth. Have a try and I think you'll like it.

  • How to receive and send SMS in the emulator or Simulator?

    Hello

    I am newbie to blackberry. I want the code to send and receive SMS listener in the emulator or Simulator.

    the research would have helped you a lot here.

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

    http://supportforums.BlackBerry.com/T5/Java-development/use-SMS-to-notify-an-application/Ta-p/444965

    in particular with regard to the Simulator:
    http://supportforums.BlackBerry.com/T5/Java-development/simulate-phone-call-amp-message/m-p/138303?q...

  • Question red watch SMS Simulator

    Hi all, using 2 9700 simulators under version 5 to try and test a SMS listening program. This used to work fine, but now whenever I have try and send an SMS from 1 Simulator to another, I get a red clock next to the SMS sender and I never get anything else. Like I said it worked very well. The 2nd Simulator runs from a different location than iis used during debugging. I've played around with the SMS settings (currently packs turns to 7-bit encoding) with no joy. Also shot and manage connections without joy. Mobile network take their flight simulator and data services are turned on.

    Can someone tell me what I should do to fix this please because the reset does not work either. Thanks a lot for any assistance.

    Try resetting the simulator by running the clean.bat file located in the directory of Simulator.

    If this does not help, make sure that you do not have any firewall software that blocks the ports used to send and receive SMS messages.

  • Listener is the addition of several times

    Hello

    My app account number of messages send by user for this I wrote to count the messages app. I did it using sms listener concept, but the problem is listener sms adding several times. Whenever I start the app it adds a listener most. Anyone has idea how to add sms listener only once?

    Please help me on this

    RuntimeStore runtimeStore = RuntimeStore.getRuntimeStore();
    if( runtimeStore.get(MYKEY) == null ) {
       MyListener myListener = new MyListener();
       runtimeStore.put(myListener,MYKEY);
    } else {
       MyListener myListener = (MyListener)runtimeStore.get(MYKEY);
    }
    
  • SMS port already in use... MessageConnection using connector.open

    I created an application that listens for incoming txt messages and it works very well on all devices except the 8330... works of ideal app on all phones on sms listening but on the 8330 I get the problem where the exception says "port already in use"... my application is currently in beta and a user reported he was continues smart guard... as soon as he took the chip guard the app works perfectly... so im guessing as smart guard uses sms messages to intitate itself is what is the origin of the port problem... is there anyway around this? my code is below...

    public void open()
        {
            this.controller.write("Attempting to open message connection (Message tracker)");
            try {
                this.msgconnection=(MessageConnection)Connector.open("sms://:0");
            } catch (IOException e) {
                this.controller.writeToConsole("Error opening message Connection (MessageTracker) "+e.getMessage());
            }
            try {
                if(this.msgconnection!=null)
                {
                this.msgconnection.setMessageListener(this);
                }
            } catch (Exception e) {
                this.controller.writeToConsole("Error adding messagelistner (MessageTracker) "+e.getMessage());
            }
        }
    

    MessageConnection is pretty useless, since only one application can attach to the SMS port at a time.

    My advice is to switch to use the method of datagram.

    See this article:

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

Maybe you are looking for

  • iTunes Sign-in check failed

    Hello I get an error of check by connecting to iTunes for Windows 10, but the connection works fine on iPhone and iPad. I am also able to manage my Apple ID. It's only when connecting to iTunes (12.3.3) on my Windows 10 I get this error. "The check h

  • Can someone tell me why my stream isn't going up on itunes.

    Hello my stream to http://www.bloodybits.com/?feed=podcast Has been submitted to iTunes for more than a month and for some reason that he will not upwards. I've got a box open, but the status of the incident said, management. That I don't understand.

  • Crysis does not work on my P200 with HD2600 card

    Hello Y at - there a patch to make the work of 'Crysis '... CZ when I start the game everything is going really slow: s even with Gears of war that gives an error at startup... When I start the game it will slowly: s and I can not play... before I re

  • my windows vista premium automatic windows update has disappeared... .Please someone help me...

    my windows vista windows update automatic premium disappeared when I go into Control Panel and click on windows update, a window opens and he said: 'that the page failed to load"and I can't access windows update at all... every Tuesday when microsoft

  • virtual joystick devices

    Hi all.I want to create a virtual joystick as Vjoy device. (don't want to use the dll, etc...) So I just started to learn how to write a driver: NTSTATUS DriverEntry (PDRIVER_OBJECT IN pDriverObject, IN PUNICODE_STRING pRegistryPath){NtStatus = STATU