title: How to lock the landscape mode in j2me app?
body: <p>I want to show my app only in portrait mode. I have to restrict the landscape mode in my app.</p>
  
  <p>There are separate attributes for each devices.</p>
  
  <p>For Nokia, <strong>Nokia-MIDlet-App-Orientation : Portrait</strong>.
  For Samsung, <strong>MIDlet-ScreenMode : Portrait</strong>.</p>
  
  <p>After adding these in JAD, I tried to install it in Nokia C5. I am unable to install it. I am getting <strong>Compulsory attribute missing error</strong> because custom JAD property shouldn't start with <strong>MIDlet-</strong>. I am unable to install it because of <strong>MIDlet-ScreenMode : Portrait</strong> property.</p>
  
  <p>Is there any general code to lock the landscape mode in all devices like NOKIA, LG, Motorola, Samsung etc.,</p>