Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor
    Join Date
    Jun 2009
    Tel-Aviv Israel

    leave N97 in portrait view

    Hey, I would like to make sure that my application will work only in the portrait view, what do I need to do?
    Adam Zehavi.

  2. #2
    Super Contributor
    Join Date
    Mar 2008
    The Capital of INDIA

    Re: leave N97 in portrait view

    For the Nokia N97 which is S60 5th Edition device, you can use JAD attribute called as 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,

  3. #3
    Registered User
    Join Date
    Sep 2007

    Re: leave N97 in portrait view

    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.

Similar Threads

  1. Handling LandScap and Portrait view of form in Lwuit
    By yatin.frankline in forum Mobile Java General
    Replies: 13
    Last Post: 2010-04-09, 19:11
  2. N97/5800 Video Player in Portrait and Landscape mode help!
    By laker in forum Mobile Java General
    Replies: 4
    Last Post: 2009-12-18, 18:38
  3. Fix portrait mode in N97 fw v.20
    By diegoves in forum Mobile Java Media (Graphics & Sounds)
    Replies: 1
    Last Post: 2009-11-16, 12:00
  4. Forceing Portrait Mode on n97
    By Corbella in forum Symbian
    Replies: 1
    Last Post: 2009-08-07, 10:09
  5. Replies: 1
    Last Post: 2003-05-22, 18:12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts