Hey, I would like to make sure that my application will work only in the portrait view, what do I need to do?
Hey, I would like to make sure that my application will work only in the portrait view, what do I need to do?
Thanks,
Adam Zehavi.
For the Nokia N97 which is S60 5th Edition device, you can use JAD attribute called as Nokia-MIDlet-App-Orientation
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.
Thanks with Regards,
R a j - The K e r n e l
Join Delhi-NCR Nokia Developer's Community,
Hi ,
If you want to do programetically In the Displable class thre is a methos called protected void sizeChanged(int w, int h) when the screen sized changed . There you can check the canvas width and height and you can let you know like in which mode the application is running . And If the user is running in the non portlet view then you can give an alert like this application will run in portlet view only.