P800 & J2ME

I am starting to port my series 60 based application to other handsets and at the moment the newer sony ericssons e.g. k700, P900 etc seem to be not too bad for porting.
However I am trying to do the same for the P800 and there is the problem of when using canvases that a virtual keypad is visible all of the time to catch specific events - up,down,left,right,fire and also green, pink, yellow and blue buttons (which I cannot get the specific keycodes for - does anyone know of them as I use -6,-7 for the green crossand red tick which work on the emmulator?) and I have discovered that this cannot be removed as it is standard for midp 1.0 on this handset. Does anyone know of a way around this or at least to get more drawing height on the canvas as it only allows access to 208x172 with this keypad. Can you remove any of the status/menu bars or set a different clipping area to paint over certain areas of the screen to get more space or is it just impossible?

If there are no ways around this as above I was thinking that the main problem is that I can’t use the setfullscreen(true) line as it is MIDP 2.0 specific, but I have heard that MIDP 1.0 phones can get access to MIDP 2.0 specific features by being built with j2mepolish, does anyone know if this is possible and if it would solve my problem by being able to set this to true and gain more space or to at least hide the virtual keypad that just won’t go away?

Many thanks for your valued responses.

There is no fullscreen support for the P800. You’ll have to deal with the keypad, and the “measly” 208x172 (that’s a lot for mobile development).

You can catch them as game actions, they map to the GAME_A, GAME_B, GAME_C, GAME_D game actions.

Not the fullscreen. What you’re thinking about is an emulation of the MIDP 2.0 Game API (so you can use Sprites, Layers, etc.).

shmoove

Thanks shmoove,

your medal is on it’s way.

208x172 is measly for me being used to 176x208 minimum!

Is it possible to rotate the origin when painting onto a canvas in the same way that you can translate it to be a different location on the screen? That way I could use the screen width(208) as the height and that would solve a lot of my problems apart from the keypad being on the right-handside of the screen.

Not possible. You’ll have to do that by hand if you want the game on it’s side.

OT: There is one phone that actually has an API for that, but it’s not very popular.

shmoove