I am interested in having a bitmap icon that when clicked will open a new screen. Now so far I have been using this link to achieve drawing the bitmap:
Blackberry Clickable BitmapField
This code is meant to draw a bitmap on the screen and evoke an action when clicked upon. It has two pictures with and without focus. I am calling it with:
CustomMenuButtonField buttonInstance = new CustomMenuButtonField("img1.png", "img2.png");
add(buttonInstance);
I have changed:
protected boolean navigationClick(int status, int time)
{
Alert.startVibrate(50);
//fieldChangeNotify(0);
return true;
}
One issue I am having is that when I click outside the image in the field manager, the picture is still changed and an action is evoked (vibrates). From here it stays in the "focus" until I click on another text field on the window, but clicking on white space still does not change it. My question is should this be happening, and is there a way to limit it so the action is evoked JUST when you click the bitmap and not around it? Also is there a simple way to scale the bitmap into something of smaller size such as an icon? I am trying to position 4 icons that when clicked will open four different screens. If anyone knows anything about this any assistance would be appreciated. I just started Java so I'm an extreme novice.