Search code examples
java-melandscapelwuitscreen-orientation

How to restrict j2me application in the Landscape mode only


I am developing application using J2ME and LWUIT.I want to run this application on landscape mode only. For Nokia there is an attribute : Nokia-MIDlet-App-Orientation: landscape but for other device , What is the attribute to restrict the application to landscape mode only? How to achieve this for different J2ME devices?


Solution

  • Following is the attribute to restrict application in landscape mode only.

    Nokia device:

    Nokia-MIDlet-App-Orientation : Landscape
    

    Samsung device:

    MIDlet-ScreenMode : Landscape