Full screen on existing java games?

Is there any way that I can modify any existing Java Apps so they run in full screen on my Motorola C380? The problem is that i see all the time some menu, which i don’t need , and if not there - the game will be playable …

if there is any way, please help me, guys!

Thanks in advance!


wasp

Potencially yes, the C380 is MIDP2.0 so fullscreen mode should be possible.

You can decompile the game using DJ decompiler :-

http://members.fortunecity.com/neshkov/dj.html

The code will likely be obfuscated, but that shouldn’t be a problem.
You will need to find the class that extends Canvas, or GameCanvas. (hopefully there will be only 1)

In the constructor for the class, simply add setFullscreenMode(true), then recompile the code.

This may, or maynot get rid of the Command bar/status bar.

If the app. is using lcdui Commands, it may ignore your request to go fullscreen.
If this is the case, you will need to strip this code out, and replace it with your own implementation of softkey Commands.

You will likely need to resize some of the image assets the game uses - and probably alter the positioning of some elements of the game, for it to take advantage of the extra screen space gained.

[quote]Potencially yes, the C380 is MIDP2.0 so fullscreen mode should be possible.

You can decompile the game using DJ decompiler :-

http://members.fortunecity.com/neshkov/dj.html

The code will likely be obfuscated, but that shouldn’t be a problem.
You will need to find the class that extends Canvas, or GameCanvas. (hopefully there will be only 1)

In the constructor for the class, simply add setFullscreenMode(true), then recompile the code.

This may, or maynot get rid of the Command bar/status bar.

If the app. is using lcdui Commands, it may ignore your request to go fullscreen.
If this is the case, you will need to strip this code out, and replace it with your own implementation of softkey Commands.
[/quote]
Thank you very much, this is what i needed to know. I will try it.

No, the game fits perfectly on the screen, if the menu is not visible. So there is no need to tweek anything.

Is impossible to see full screen java games in a MIDP 1.0 phone?

Not in a phone that supports only MIDP 1.0. But many manufacturers noticed this problem and added proprietary APIs to use full screen. E.g. Nokia did this with its ‘Nokia UI API’, which is in all its MIDP 1.0 phones (and in the MIDP 2.0 phones, but just for backwards-compatibility).

You also get some crazy manufacturers who add MIDP2.0 methods to their MIDP1.0 implementation, and don’t bother telling anyone about it :o

The O2 X2 for example, a MIDP1.0 device, implements Canvas.setFullscreenMode(boolean) :o