My application in J2ME, I have just changed Emulator Platform to Blackberry JDE 6.0.0 and Device 9800.
After applying above configuration in Netbeans I got MyApp.cod file. I have installed it on my device Blackberry but problem is I used mostly Canvas and I used softkeys for options. Trackball working with Left, UP, Down & Right it's fine. But my soft keys which I provided on canvas it's not working? What I have to make changes in my canvas to use soft keys of blackberry?
Here is code ::
protected void keyPressed(int keyCode) {
action = getGameAction(keyCode);
if(keyCode == -7)
{
// for go to back
Display.getDisplay(midlet).setCurrent(midlet.aolMenuCanvas);
}
else if(keyCode == -6)
{
try {
//midlet.DownloadPhoto((imageName[index_send]),++index_send);
midlet.DownloadPhoto(imgName[index]);
} catch (IOException ex) {
ex.printStackTrace();
}
}
}