Tuesday, 8 May 2012

Enable landscape mode for java apps and games

If you want to enable landscape mode in any J2ME(Java for mobiles) jar application, its very easy !!!!!

Open the .jar file with WinRAR.

Find a folder called META-INF.

Browse inside that folder to get a file named MANIFEST.MF

Open this manifest file in notepad and enter the following lines as applicable:
------------------------------------------------------

MIDlet-ScreenMode: Landscape
MIDlet-Touch-Support: True
------------------------------------------------------

Now save the file and update the archive and re-install the application in your mobile.

The first line enables landscape or full screen mode.

The second line enables touch support for some touch-enabled apps by removing the default java keypad
(only for touch phones).

Tested in Samsung and Nokia phones.

No comments:

Post a Comment

clicksor