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