views:

614

answers:

3

Hello .... can anyone help me for solving the below question. I am making an application for blackberry in that from one bitmapField i have to invoke a new screen by clicking on the bitmapField. I want the code for the same... how to invoke a new screen by clicking on a bitmapField... and i am using blackberry JDE 4.7

+3  A: 

Try making the BitmapField focusable

BitmapField bm = new BitmapField(bitmap, BitmapField.FOCUSABLE);

This might help

Rigobert Song
this did not worked in case of storm!!!!what to do
SWATI
A: 
Alex
A: 
BitmapField bmpField = new BitmapField(bitmap, BitmapField.FOCUSABLE)

protected boolean navigationClick(int status, int time)
  {
     if(bmpField.isFocus)
       {
          UiApplication.getUiApplication().pushScreen(new MyScreen());
       }
      return true;
  }
}

i have worked like this in storm and it works. If even this does not works u can go ahead for TouchEvent instead of navigationClick

SWATI