Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

New Developer
Posts: 160
Registered: ‎03-02-2011
My Device: Not Specified

How to add Read and Delivered status to MessageListManager using BBM SDK? IMPORTANT

Hello, I am trying to make a chat screen using the BBM SDK. I come up with the below solution:



I want to add the D and R arrows right before the messages, to look exactly like the BBM chat.

How to do it? Please some help here

Posts: 172
Registered: ‎06-07-2010
My Device: BlackBerry 8520
My Carrier: Rogers

Re: How to add Read and Delivered status to MessageListManager using BBM SDK? IMPORTANT

Hello Farid,


Apologies in the delay of my answer. Was hoping the community could answer the question for you.


The ChatField class by default doesn't allow this behavior. What you will need to do in fact is something like below:


// In your MainScreen Constructor or where you choose to specify declare the below global variables.

BasicReplyFieldManager _replyField = 
    new BasicReplyFieldManager(new ReplyField(), new SmileyButton());
VerticalFieldManager _vfm = new VerticalFieldManager(Manager.USE_ALL_WIDTH;		
BottomUpManager _bscreenManager = new BottomUpManager();


// In your keyChar method
String message =  _replyField.getReplyField().getText().trim();
HorizontalFieldManager hfm = new HorizontalFieldManager(NO_HORIZONTAL_SCROLL|NO_HORIZONTAL_SCROLLBAR);

BitmapField bmp = new BitmapField(_bbm.getUserProfile().getDisplayPicture(), NON_FOCUSABLE);
hfm.add(new LabelField(message,Field.FOCUSABLE));


The above code just attaches the user's display picture along with the LabelField representing the chat bubble. From using the above logic you can insert your "Read" and "Delivered" status messages. You will also have to program the rules for the status changes yourself.


Let me know if you have questions and I will be more than happy to answer them for you.


Raihan Masroor
BlackBerry Development Advisor