02-11-2013 08:15 AM
I am trying to add one menu item in the Menu List in BlackBerry Messages application. I am using the following code to display an image beside of the String, But Image is not shown in the MenuItem.
private class SampleMenuItem extends ApplicationMenuItem {
SampleMenuItem(int order) {
super(order,ImageFactory.createImage("image.png")) ;
}
public String toString() {
return Constants.MSG_OPEN_WITH;
}
public Object run(Object context) {
.............
}
02-11-2013 08:43 AM
is ImageFactory.createImage("image.png") actualy creating an image?
02-13-2013 12:59 AM
Sorry for the delay, yes ImageFactory.createImage("image.png") is creating an image it is not a null value