BBM BasicMessageListManager disappears when I open the menu screen

Hello

I'm trying to integrate my application with the blackberry messaging platform. for this I use the SDK of BBM. I use a custom desktop to display messages. This screen contains a BasicReplyFieldManager defined as the State of the screen and a BasicMessageListManager that is added as a child of the live screen. This medication is ok, as long as I don't have to open the menu screen. By example, if I override the keyChar method to add messages to the BasicMessageListManager everything is ok. If, on the other hand, I use a menu option to do this, as soon as I open the menu, the BasicMessageListManager disappears. During debugging, I discovered that the BasicMessageListManagerof the Manager is set to null. That's why it disappears. The response of field does ' t disappear because it is in the State. If I put it in a BottomUpManager for example they both disappear.

If someone has encountered this? or did someone knows how to get around this problem?

Here is the code I use:

replyField=new ReplyField();

smilyBtn=new SmileyButton();
smilyBtn.setClickRunnable(new Runnable() {
    public void run() {
        synchronized (UiApplication.getEventLock()) {
            SmileyScreen scr=new SmileyScreen();
            scr.show(replyField);
        }
    }
});
replyMgr=new BasicReplyFieldManager(replyField, smilyBtn);

messageMgr=new BasicMessageListManager(0,
        MessageListManager.MESSAGE_STYLE_GROUP_MESSAGES_SAME_SENDER|
        MessageListManager.MESSAGE_STYLE_SHOW_SENDER_DISPLAY_NAME,
        MessageListManager.BORDER_STYLE_BUBBLE);
messageMgr.toggle();
BottomUpManager mgr=new BottomUpManager();
mgr.add(messageMgr);
mgr.add(replyMgr);
add(mgr);

to add messages, I use this

MessageSender ms=new MessageSender("Me");
TextMessage tm=new TextMessage(message, ms);
OutgoingTextMessageField out=new OutgoingTextMessageField(tm);
messageMgr.addMessage(out);

Thank you.

found the answear. It had nothing to do with the BBM SDK classes.

I turns out I have outweigh the makeMenu method in the class of the screen and there I called menu.deleteAll. Once I removed this line everything was ok.

Tags: BlackBerry Developers

Similar Questions

  • Why my Muse formatting does not disappear when I open the site in DW CS6? I need to change the PayPal shopping cart code to account for my shipping options. I exported the Muse test in a folder and then created a new Site in DW using this file, so any CSS

    Why my Muse formatting does not disappear when I open the site in DW CS6? I need to change the PayPal shopping cart code to account for my shipping options. I exported the Muse test in a folder and then created a new Site in DW with the help of this file, so all CSS should be there, but I don't see on the page about the elements without formatting, any stop to the left. Thank you!

    PS: Muse will be the most impressive program ever when they fix these bugs or drop because not every user will be paying through the nose for Business Catalyst. Grrrrrrrrr.

    Best approach would be not to use the PayPal widget and instead copy and paste the PayPal code embedded in an object > object to insert the HTML in Muse. This way you can edit the HTML code to embed PayPal code from Muse and without having to modify the exported code.

  • Office taskbar disappears when I open the internet browser.

    My office task bar disappears when I open a Web browser.  The bar at the top of the screen disappears also (skins).  If I roll my mouse to the top of the screen, the toolbar internet goes down but the taskbar of the desktop does not appear when I open a Web browser.  How to get the toolbar on the screen and also how get the toolbar Internet to stay on the screen and not auto hide?

    Press F11.
  • Start menu disappears when you use the menu

    When I click on the Start button on the start menu, the menu will open, but after a few seconds it just closes. Account other start menus work perfectly well.

    Hi Danny81212,

    ·         Have you made changes on the computer before this problem?

    ·         You get the error message?

    Follow these methods.

    Method 1: Follow these steps:

    Step 1: Start the computer in safe mode and check if the problem persists.

    http://Windows.Microsoft.com/en-us/Windows7/start-your-computer-in-safe-mode

    Step 2: Perform a clean boot to see if there is a conflict of software like the clean boot helps eliminate software conflicts.

    Note: After the boot minimum troubleshooting steps, follow step 7 in the link to return the computer to a Normal startupmode.

    Method 2: It seems to be corrupted user profile. Follow the steps in the article on how to fix a corrupted user account.

    http://Windows.Microsoft.com/en-us/Windows7/fix-a-corrupted-user-profile

  • Tecra A8 PTA83E, when you open the splash screen

    Hello, I'm me Tecra A8 and when the screen is closed and I open it (computer is not turned off) I get a black screen and he finds "starting windows" and low on the screen, he finds "press F8 to start advanced and looking bad."

    What's wrong?

    I recently clean the computer with the cd and I recently got a service and they change fan and dvd player. I wrote about this problem too, but now it's back.

    Anyone who has this too?

    /Anki

    Hello Anki

    To be honest, it is not easy to understand what is the problem there. You can try to update BIOS in the hope that the problem will be solved.

    I recommend to check the settings of standby power and test it by changing the settings for when I close the lid option. Test also with profiles of different powers.

    Sorry Anki, but it is really not easy to say what the problem is here.

  • I have an iphone 5 s when I opened the app screen ther place is no icon of the application not found

    I have a 5 s 7.1.2 IOS, model MD440LL/A.  I do have the App Store icon on the home screen. When to go to the ITunes App & in that updated settings App is turned on. Use also. as cellular data are. Kevin

    If you don't see the App Store icon on your home screen, go to settings > general > Restrictions and make sure that if you have Restrictions, that "Facility" and "Suppression" Apps are activated under 'allow '.

    See you soon,.

    GB

  • Windows text disappears when I open a menu drop-down

    original title: TEXT disappears

    When I point to any word in the dialog boxes or need to choose all the options in a menu drop down, my text disappears and the text box is white.  Please help me fis this annoying problem.

    Hi YvetteKing,

    Thank you to contact the community Microsoft and we will be happy to help you with your concern.

    According to the description, I understand that, while you select a word or drop-down box the text box disappears and becomes white.

    He would be grateful if you can answer this question in order to help you further.

    Have you made changes on the computer before this problem?

    I would suggest trying the following steps and check if it helps.

    a. right click on computer.

    b. Select advanced in the left pane system settings.

    c. Select the running parameters.

    d. in respect of Visual effects, remove control "Use Drop Shadows for the desktop icon labels".

    Thanks for posting the question in the Microsoft Community. If you need others with this problem please do not hesitate to join us.

  • How can I create an intro clip that plays when before inserting the menu screen in PE7?

    I PrE7/PSE7 and want to create a dvd where during the insertion, it will play a clip short introduction before moving on to the main menu.  I did some tests and was not able to make it work.

    First, a play that precedes the main Menu is not possible in pre. One needs to use an another design program, such as Adobe Encore, which, starting from CS3, supplied only with PrPro or Sony DVD Architect. PrE has some limitations.

    Sorry,

    Hunt

  • Why isn't my project on Photoshop Touch appear when I open the application?

    When I open the photoshop screen application where the projects are supposed to be are just grey... Nothing... If anyone can tell me why my projects does not appear?

    Well, it's strange. You should at least have the tutorials and Intro on the screen.

    I would only try uninstall/reinstall but don't try that if you have not already saved your PS projects touch.

    What is the used Tablet? Any space left on the device?

  • Acrobat Pro Ver 9 for Win 7 the menu bar (File, Edit, View, Document etc.) disappears when I move the window

    Recently in Acrobat Pro 9 Ver for Win 7 the menu bar (File, Edit, View, Document etc.) disappears when I move the window. . only happens when I have a pdf file open. . everything worked fine until a few days ago. . F9 solves the problem until I have move the window again. . I realize that my version is old so I tried tried download XI player and having the same problem. . any help would be appreciated

    Found the Solution. . It's know bug with Kaspersky Anti Virus 2015... the solution is to upgrade to version KIS 15.0.1.415... Kaspersky Lab Forum > Bug: KIS version 15.0.0.463 patch B Acrobat Reader XI

  • I can't transfer photos from iPhone to MacBook Air. When I opened the Photos on a Mac, there is no tab 'import' alongside the actions, projects, Albums. iTunes is up to date. File menu does not appear iPhone

    I can't transfer photos from iPhone to MacBook Air. When I opened the Photos on a Mac, there is no tab 'import' alongside the actions, projects, Albums. iTunes is up to date. File menu does not appear iPhone

    The "import" tab appears only when the iPhone is connected to the Mac via a USB port.

    ITunes detects your iPhone when it's connected?

    If iTunes does not recognize your iPhone, iPad or iPod - Apple Support

  • When I open the Device Manager there is no ' sound, video...» "in the menu. What should I do for intal vista audio output device?

    My computer says "no audio output device is installed" when I open the Device Manager there is no 'sound, video game... ". "in the menu. What should I do to get a new installed audio device?

    Stan

    Hello


    1. What is the brand and model of the computer?
    2 did you and changes before the show?
     
    Method 1:
     
    I suggest you open recognition of the device by using Device Manager.

    (a) click Start and type Devmgmt.msc, and then Enter. The Device Manager window opens.
     
    (b) click on your computer as the location for the scan.
     
    (c) on the Action menu, click Scan for hardware changes.
     
    (d) to close the Device Manager window, and then restart the computer.

    Method 2:
    You can try to download and install the latest drivers for the sound from manufacturing sites and check.
    Check out the following link.
    Updated a hardware driver that is not working properly
    http://Windows.Microsoft.com/en-us/Windows-Vista/update-a-driver-for-hardware-that-isn ' t-work correctly
     
    Method 3:
    You can see the following link.
    No sound in Windows

     
    For reference:
    It will be useful.
  • My menu bar disappears when I move the cursor to the top of the document.  F9 it back, but I have to hit it twice everytime I go up to the menu bar.  How can I disable this feature?

    My menu bar disappears when I move the cursor to the top of the document.  F9 it back, but I have to hit it twice everytime I go up to the menu bar.  How can I disable this feature?

    Read this:

    Bug: KIS version 15.0.0.463 patch B Acrobat Reader XI - Kaspersky Lab Forum

  • When I open the browser any web address displayed in the browser window

    The first time I opened Firefox v21 or now 22 that the web address of my home page does not appear in the pain of nav. If I go back to the homepage address shows. I changed my home several times and it makes no difference. Windows 7 is the operating system

    Hello

    Try Firefox Safe mode to see if the problem goes away. Safe mode is a troubleshooting mode, which disables most of the modules.

    (If you use it, switch to the default theme).

    • You can open Firefox 4.0 + in Safe Mode holding the key SHIFT key when you open the desktop Firefox or shortcut in the start menu.
    • Or open the Help menu and click on the restart with the disabled... modules menu item while Firefox is running.

    Once you get the pop-up, simply select "" boot mode safe. "

    If the issue is not present in Firefox Safe Mode, your problem is probably caused by an extension, and you need to understand that one. To do this, please follow article Troubleshooting extensions, themes and problems of hardware acceleration to resolve common Firefox problems .

    To exit safe mode of Firefox, simply close Firefox and wait a few seconds before you open Firefox for normal use again.

    When find you what is causing your problems, please let us know. It might help others who have the same problem.

    Thank you.

  • Hi, I installed an Alfred Workflow (see code below) that will mark all my mails as read. After you run it for a minute, the mail has crashed and I had to forcequit. However, now, when you open the Mail it crashes instantly, even after restart and repair o

    Hello

    I installed an Alfred Workflow (see code below) that will mark all my mails as read. After you run it for a minute, the mail has crashed and I had to forcequit. However, now, when you open the Mail it crashes instantly, even after restart and repair the permissions. I also used the Ctrl + C and CTRL-Z commands in the Terminal to leave the alfred_script, but nothing helped. I'm running out of ideas here, so I hope you could help me either reinstall the mail.app. I could always just switch to a different mail application, but it's kind of a last resort.

    Code:

    Tell application "Mail".

    Define allAccounts on each account name

    Repeat with currAccount in allAccounts

    the unreadMboxes value (each mailbox to the account currAccount the unread number is not 0)

    Repeat with currMbox in unreadMboxes

    (read status of each message to currMbox including the playback State is set to false) true value

    end repeat

    end repeat

    tell the end

    Any input would be greatly appreciated. Can post the report of crash on demand.

    Not sure that Alfred's, but it's just an Applescript script and it would not cause Mail to be planted.

    However, when running through all the messages, it is possible Mail database has been corrupted and it crashes because of this.

    I'll probably get anything out of the accident report, but others might.

    My first instinct would be to rebuild the mailbox. Because you can't do that with him crashing, you can simply delete the databases and it will rebuild them.

    Navigate to this folder:

    ~/Library/Mail/v3/MailData/

    You can either manually through the files, or copy the full path and paste it into go the folder in the menu go to the Finder.

    Remove the envelope Index files. Open Mail and see if it works well.

    If your library does not appear in your folder, hold down the Option key and select library in the menu go to in the Finder.

Maybe you are looking for