×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Oct 2008
    Posts
    43

    Best way to handle rotations in an landscape-only app?

    I'm working on porting an app from a regular phone (6120c) to a 5800. The app is supposed to work in landscape mode only.


    What would be the normal or typical way to handle rotations in this scenario? I'm planing on simply showing a message that the phone must be rotated whenever the phone is set in portrait orientation. However, I'm still wondering if the orientation can somehow be locked at landscape mode.

    In general terms I don't want to change the axis, rotate bitmaps, etc, just to show a nice rotated screen when the phone is in portrait mode.


    Any comments are welcome.

  2. #2
    Super Contributor
    Join Date
    Mar 2003
    Location
    Espoo, Finland
    Posts
    976

    Re: Best way to handle rotations in an landscape-only app?

    Quote Originally Posted by carlosl View Post
    I'm still wondering if the orientation can somehow be locked at landscape mode.
    You're looking for this:

    Code:
    appuifw.app.orientation = 'landscape'
    ...and related manual page:

    orientation
    Available only for S60 3rdEd. The orientation of the application. The orientation of the application can be one of the following values: 'automatic' (this is the default value), 'portrait' or 'landscape'.
    Cheers,

    --jouni missing the old readable manual

Similar Threads

  1. Any way to disable automatic landscape mode for app?
    By DeathBaba in forum Symbian User Interface
    Replies: 4
    Last Post: 2009-12-30, 09:43
  2. How to test file reading/writing and web server app in emulator?
    By SanjayKhuntia in forum Mobile Java General
    Replies: 6
    Last Post: 2008-09-09, 10:03
  3. symbian signed testing problem.
    By anglina in forum Symbian
    Replies: 0
    Last Post: 2007-02-01, 10:15
  4. Dialog's clipping area (again). Nokia experts, please help
    By synov in forum Symbian User Interface
    Replies: 0
    Last Post: 2004-06-26, 14:35

Posting Permissions

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