listen to the message of BlackBerry incoming/outgoing

Hello.
I am new to BlackBerry.

Try to catch the incoming and outgoing BlackBerry messages.

Have a problem. Code does not work on Tour 9630.

Import net.rim.device.api.ui.UiApplication;
Import net.rim.blackberry.api.phone.Phone;
import net.rim.device.api.system.ControlledAccessExceptio n;
Import net.rim.device.api.ui.component.Dialog;
Import net.rim.blackberry.api.phone.phonelogs.PhoneLogs;

final class MainClass extends UiApplication
{
Public Shared Sub main (String [] args)
{
If (args! = null & args.length > 0 & args [0] .equals ("autostartup"))
{
*****
Application of MainClass = new MainClass();
application.enterEventDispatcher ();
}
on the other
{
}
}
    
public MainClass()
{
new BBMessagerLog();
}
}

import net.rim.blackberry.api.blackberrymessenger.Session

Listening port;
Import net.rim.blackberry.api.blackberrymessenger.Message;
Import net.rim.blackberry.api.blackberrymessenger.Session;

/ public class BBMessagerLog implements SessionListener
{
BBMessagerLog()
{
       
}
    
Indicates that an outgoing Message arrived at its destination
' Public Sub messageDelivered (a session Message message) {}
}
    
Indicates that a Message has been queued for sending a Session
' Public Sub messageQueuedForSend (a session Message message) {}
}
    
Indicates that an incoming Message was received by a Session
' Public Sub messageReceived (a session, the message)
{
Send data to the server
}
    
Indicates that an outgoing Message has been sent
' Public Sub messageSent (a session, the message)
{
Send data to the server
        
}
    
Indicates that a Session was closed
{} public void sessionClosed (one session)
}
}

JCarty wrote:

Let me add that the demo of morpion is obsolete now that the API for BBM have been left out and they rewrite you for more recent versions of BBM surveys.

I wouldn't bother with currently documented APIs.

https://www.BlackBerry.com/jira/browse/JAVAAPI-1231

good to know, thanks for the update JCarty!

Tags: BlackBerry Developers

Similar Questions

  • cannot get a cd to listen to the message says error 0X00D11BA

    Help please, I'm dying to listen to the music - what is the problem?

    Hello
    • This only happens with the particular CD?
    • Have you checked CD playback in different computer?
    • What is the version of windows running on your computer?
     
    You can use the following methods that can help you solve your problem:

    Method 1:
    Try reinstalling the drivers from CD/DVD, follow the procedure described here below.

    Click Start > right click on computer > Manage > Device Manager > expand CD/DVD drive > right click on the option below and click on uninstall. Now, restart the computer to install drivers from CD/DVD driver Windows cache.

    Method 2:

    You can also follow link below:

    Play a CD or DVD in Windows Media Player

  • Opening of the session of the Windows for POP3 incoming/outgoing security

    I am a Qwest customer, using the windows email.

    Can't send or receive emails.

    I get a message of Windows e-mail asking me to connect to POP3, what I do, and then I get the following error message:

    Account: 'POP3', server: 'pop.centurylink.net', Protocol: POP3, server response: '-ERR invalid command', Port: 995, secure (SSL): Yes, Server error: 0x800CCC90, error number: 0x800CCC91

    I went into my tools/accounts/mail/Properties/Servers tab e-mail and checked the folloing:

    Incoming mail server is a POP3 Server

    Incoming (POP3) mail is pop.centurylink.net (995)

    Outgoing (SMTP) mail is smtp.centurylink.net (587)

    Suggestions would be appreciated

    Kevin

    Turns out I had 2 different email accounts... I deleted them both and started on.

    Works like a charm... Thanks for your patience!

    Sincerely,

    Kevin & Tammy

  • Type Smiley icon unknown of in the message box blackBerry Smartphones

    Next to my bluetooth icon is a * with a 1 on the left.  This mean?  I can't find any mention of such an icon anywhere... This is the area of number of messages... Mine is a number of messages and bluetooth and the smiley.  Help! It drives me crazy and it's a trip short lately

    Welcme to Frums!

     

    I think that the smiling face may be the Messenger of your blackberry.  Open your messenger and see if you have a message waiting. It will be either blue blackberry or blackberry red symbol.

  • Voicemail for the removal of blackBerry Smartphones without listening to the entire message

    One of my children made a habit of 'butt dialing' me by mistake, leaving messages of 5 minutes.  Lack of knowledge what else to do, I have to listen to him walk around with a voice hushed for a full 5 minutes before I can hit "7" to remove the message.  There must be a better way forward quickly at the end of a message. I tried all the keys as well as the # and *... Help!

    So you kick 7 is not fast enough?

    Delete, repeat, fast forward, etc., keyboard shortcuts for your voicemail come from your operator, not BlackBerry. You should check with your carrier about voice shortcuts.

    For example, on mine, typing press the 3 deletes the virtual machine.

  • How to listen to the incoming/outgoing call events?

    I am using the phone interface and the onCallUpdated method, but the id does not work on incoming/outgoing calls.

    Are there examples of code or something else?

    It has:

    access_phone
    

    Try and tell me if it works.

  • New icon for the application of new incoming message after...

    Hi guys! I did the application that receives electronic messages. How can I change the icon of the application on the incoming message to my icon 'unread '? My application is started automatically when the device is turned on. And second entry point to start my application manually (with GUI). Auto-start, fixed it successfully icon and icon Overview:

    HomeScreen.updateIcon (icon, 0);

    HomeScreen.setRolloverIcon (icon2, 0);

    but on the message inbound (FolderListener.messagesAdded start), these functions generate an exception:

    I tried change index 1,2,3... BU result is the same... Where is my problem? Maybe there is another way to change the icon at this time? Help, please. Thanks in advance.

    Do not forget that in the file listener, you actually in the mail app not running your application.  You need get this change is made in your application.  The best way to proceed is to use GlobalEvents, that fire in your listener and deal with it in your Application to change the icon.

    See below for more details:

    What is - world events and global event listeners
    Article number: DB-00145
     
    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/796557/800332/800620/...

  • Incoming message from blackBerry Smartphones

    I'm new with 8820,

    Wonder if there is a way to organize all of the incoming message; SMS, e-mail, etc.?

    I noticed that all of the entrants is store in the message item, is there a way to move to another folder or create each type of message to new folder in the memory card?

    All my call records also to come in this message box, then it's hard if you have a lot of messages and calls save in one box.

    Your help on the above is appreciated

    Sure you can! Follow the procedure that will give you a folder separated for your SMS messages and e-mail - below

    Go to Messages -> Options -> General Options -> SMS and email inboxes: separated

    By design in BlackBerry all e-mail messages will come in a folder of Messages as well as separate file created with differentmail IDs. Reading of mails in the personal file will make the same email as read in mail. Check for emails in memory card is not possible. But with fastener OS 4.5 and BIS 2.5 download memory card will be possible some time later.

    On call logs, you can change the setting so that it does not appear in your messages folder. Go to the call log -> Options -> Call Logging -> select None

  • Message text blackBerry Smartphones icon does not disappear and the message is empty

    I (now 2) incoming text messages icons on my screen that won't go away.  The messages are of the same person.  When I opened the message there is no text, but when I close it, the icon remains as if I did not open the message.  I deleted this person as a text contact conversation and others with her, from my phone and put his back as a contact.  I turned the phone market.

    I tried to delete the message by clicking on the screen of the app and tapping text messages and delete the empty message from there.  I went in the messages folder after the message and is not here, but still on the screen "unread".

    Help, what I did?

    Tips to clear the message unread... try them in the order.

    If you have a new icon rogue Message on your home screen, or a negative number (-1), one of these solutions could erase or reset:

    Try these options:
    The main Messages folder and select today's date, click on the menu button and then select Mark prior opened.
    * Hard Reset BlackBerry now ALT CAP (right Shift key) and DEL (or with the BlackBerry power, remove the battery and reinsert the battery)
    Messages > saved Messages
    Messages > view folders, check each folder (calls, SMS and MMS, and boxes, saved missed boxes, browser, phone logs etc.)
    * Scroll at the top of the folder, on the title menu, click or tap to MARK PRIOR OPEN date
    Change your theme and see if it persists and return to your desired theme. (Options > theme > select.)
    * Connect to Desktop Manager > backup/restore > advanced. On the right pane is the list of the data on your device. Scroll to the e-mail highlighted messages database, and then below, select TRANSPARENT. This will clear your system of all messages.
    * Clean and reload your OS.

  • How can I get rid of the display of the message source in its entirety in incoming emails?

    I inadvertently changes made to options because all of the sources of message list in each incoming message. When I send a message to someone else, very much at the beginning of the message is occupied by the source of the message data. It's different on my other computer, where I did no changes. How can I get rid of this?

    Thank you
    TenthLine

    The menu bar, select View-Headers-Normal

    No menu bar display? Press the ALT key.

  • Cannot print the income tax from 2012 on a Lexmark X 1185 and get the message "Prop Res DLL was not loaded"

    Original title: "Prop Res DLL not loaded".

    Try printing the income tax from 2012 on a Lexmark X 1185 and get the message "Prop Res DLL not loaded" How can I load it? Typically get this message when I print review copy. My system is Windows XP.32 bits

    Hi Robert,.

    I would be grateful if you could answer the following questions:

    1. did you of recent changes made to your computer?

    2. which antivirus app do you use?

    Here are a few troubleshooting steps that you can try to solve this problem.

     

    Method 1: Let's uninstall and reinstall the Lexmark X 1185 printer drivers.

    To uninstall the printer software, see the following link.

    http://support.Microsoft.com/kb/307895


    Restart the computer, visit the following link and install the printer drivers.

    http://support.Lexmark.com/index?ProductCode=LEXMARK_X1185&page=product&searchID=1368834464501&locale=en&UserLocale=en_US#1

    If the method above does not work, follow the steps in the next method.

    Method 2: Error Message When you try to print or save a document in OneNote 2007 or in Word 2007: "Prop Res DLL not loading" or "Cannot load Library DLBAPRP.dll"

    http://support.Microsoft.com/kb/918730

    Note: suggested above steps are applied to your scenario as well.

     

    If you have additional problems, please reply to this post and we will be happy to help you further.

  • Get the message of incoming call on HP 7520 all-in-one Photosmart

    I had a professional hook up my HP Photosmart 7520 wireless all in one.  I have a special ringtone that is put in place for faxes and also

    I get phone calls on this line. Everything works fine, but lately I've noticed when I get a phone call

    a message appears on the screen of the printer saying incoming call Auto answer on ignore or accept. I also get this messge

    for incoming faxes. If you do not click on ignore or accept that everything works well. You will get your phone call and also the

    Fax will print. I do not know if this message appeared on the screen of the printer or I'm just noticing.

    I think I started to get this message calls and faxes. Can someone tell me if this message should always

    appear when you get an incoming call or a fax or is there a setting I need to change to get rid of the message? The message really is not hurt anything if you pretend it isn't there, for incoming call example, message, leave it alone and pick up phone and all is well. The same thing with the fax. I have a distinctive ring of a fax, a double ring, but the message remains displayed "call auto answer incoming on ignore or Accept." If you do not click on ignore or accept the fax starts printing and the message disappears.  I swear I've never seen this message before.  Can anyone share any light

    on this subject? I don't know if I make a mountain out of a hill of the mole, because everything still works, but I

    never remember just to see this message on the printer display screen before and I would like to know if it comes from an update, or if I've accidentally changed something, or if it was always like that and I just noticed. Please, if anyone can shed some light on this, I would be grateful, because I really think that this message has begun to appear even if everything seems to be in working condition. All answers would be appreciated. I know I'm old, but I hope I don't get senile no also. The only thing that has happened between the time wherever I noticed this message is I needed a Java Update and I got a fake virus. This was my tech support-assisted and supported.

    Thank you in advance.

    Hi go_pens,

    Your printer has a feature that allows automatic updates. There was actually a patch last week or the week before for this printer. These updates to the firmware of the printer. I think that your mind is still intack, I believe, you're not senile.

    I don't think the message appeared on the printer before, I guess you're right, and that the update made this change. In addition to the automatic response accepting faxes for you, you now have the possibility to accept or ignore the fax before that the automatic response accepts the fax.

    I hope that this addresses and solves your request! Thanks for joining the HP Forums. If there is anything else, we can help do not hesitate to ask.

  • When I go to Windows Media player to listen to the music, I get an error message C00D11B1 how can I fix that I can play my music?

    When I go to Windows Media player to listen to the music, I get an error message C00D11B1 how can I fix that I can play my music?

    Hi SummerSolarez,

    1. did you of recent changes on the computer?

    2. This only happens when you try to play a specific type of file with all the files or music?

    I suggest you to update your audio driver by following the steps in the link below and check if it helps.

    Windows Media Player C00D11B1

    Note: The steps are also applicable to Windows Vista Media Player.

    Hope this information is useful.

  • BlackBerry passport how to press 'enter' - but does not send the message?

    The title of this question sounds missleading, so first I want to clarify: of course, I don't want to change the General settings. 'Enter' no doubt needs to send the message, everything is not suitable for me. I just need to know how to jump a line in this mode.

    For all my blackberries former, this happens with the key combination "shift" and "enter". But with my passport for blackberry, that it does not, that gives me a hard time, really. I don't want to disable the function to send a message by pressing 'enter' in general, it makes even less sense, I just want to know how to jump a line in typing. And I can't really picture what a device designed for quick and extensive writing eliminates even the possibility of it in normal view from strike.

    any help?

    Josh-Go wrote:

    For all my blackberries former, this happens with the key combination "shift" and "enter".

    Assuming it's a BBM or TEXT message?

    Touch and hold the screen ^ arrow on the left and the Enter key.

    It is the SHIFT key, I know will say you this does not work, but it is certainly for me.

  • How to listen to TEXT messages in the air?

    How to listen to TEXT messages in the air? Thank you!

    There is not much available of BB10 exposed to the AIR. If the NDK allows you create a DONKEY for her.

Maybe you are looking for