I have a problem with my app in landscape mode, so I wonder if it is possible to set it to work only in portrait mode?
This would probably solve the issue that is described here:
http://discussion.forum.nokia.com/fo...582#post754582
I have a problem with my app in landscape mode, so I wonder if it is possible to set it to work only in portrait mode?
This would probably solve the issue that is described here:
http://discussion.forum.nokia.com/fo...582#post754582
Use JAD attribute :
Nokia-MIDlet-App-Orientation
S60 5th Edition
Allows MIDlet to force either portrait or landscape UI orientation. The orientation is only fixed on devices that support the specific layout.
portrait or landscape
On other platforms, you will get Displayable.sizeChanged() event call in such cases when user's change the orientation - you can just show a message to the end user that landscape mode is not supported and please switch back to Portrait.
Thanks,
Ekta
Thanks, I will try that. Do you mean that this attribute is only supported on S60 5th Edition?
It is supported only on 5th Edition S60, and you might find there is not 100% support even then (it might not work on 5800 Xpress Music).
Some other manufacturers have a similar option, that again will work on some devices, not others.
Some devices, of course, do not have a portrait mode.