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: 11
Registered: ‎07-04-2011
My Device: 8520
My Carrier: TSEL

Problem with BBM Integration SDK 1.3 UserProfile.setDisplayPicture

Hi All,


My simple App just try to capture the screen and change the BBM Profile Image using BBM SDK 1.3 and OS5 Environment.


Here is the code for capture the screen

private void sendPhoto(){
Bitmap theImage=null;
if (theImage == null) {
Dialog.inform("Failed to Capture Screen.");
} else {
Dialog.inform("Try to Update the Profile.");
Apps theApp = Apps.getTheApp();


and  the code for change the profile 


public boolean updatePicture(Bitmap theImage) {
PNGEncodedImage _Image = PNGEncodedImage.encode(theImage);
UserProfile theProfile = theContext.getUserProfile();
return theProfile.setDisplayPicture(_Image);


Is there any explanation or reason why the code is not working well?

FYI, the app also update Profile Status and it works fine.


Thanks for any helps