×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor
    Join Date
    Aug 2009
    Posts
    57

    disable auto-rotation of display

    Currently when the device is roated, the widget automatically changes between landscape and portrait display. Our app is not intended to be displayed in landscape orientation, and thus we'd like to have it always display in portrait view.

    in other words we want to have nothing happen when the user rotates the device between horizontal and vertical.

    Thanks!

  2. #2
    Nokia Developer Champion
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,405

    Re: disable auto-rotation of display

    Hi wildabeast,

    take a look at the widget setDisplayLandscape() and setDisplayPortrait() methods.

    Pit

  3. #3
    Regular Contributor
    Join Date
    Aug 2009
    Posts
    57

    Re: disable auto-rotation of display

    Thanks Pit. I did see those, and that is my current implementation, calling those functions in the onresize event. However this does cause a momentary screen flash when it is called (the first time only), so I wanted to see if there was a way to simply disable the auto-rotation rather than react to it.

    But this solution does work so thanks!

Similar Threads

  1. How to display a part of an Image from Web
    By somnathbanik in forum Symbian
    Replies: 11
    Last Post: 2009-07-26, 14:44
  2. Disable Secondary Display
    By videolist in forum General Development Questions
    Replies: 1
    Last Post: 2009-07-19, 05:43
  3. how to disable the display of "Checking internet connectivity"?
    By buptwsg in forum Wired and Wireless interfaces (Closed)
    Replies: 0
    Last Post: 2009-06-01, 09:42
  4. Replies: 2
    Last Post: 2003-08-07, 12:58

Posting Permissions

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