×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Jun 2008
    Posts
    5

    Help: how to use WRT only in Portrait mode?

    hi all,

    i am a new guy. please can you tell me what piece of code do i need to add to my wrt so that it only works in the portrait mode even with the keyboard out or phone turned to landscape mode (i.e. accelerometer function)

    thanks

    p.s.

    a code for only landscape mode would also be cool :P

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

    Re: Help: how to use WRT only in Portrait mode?

    Hi gomcoite,

    check out these references on Forum Nokia Library:
    * http://library.forum.nokia.com/index...38EAFE985.html
    * http://library.forum.nokia.com/index...1823A4534.html

    Pit

  3. #3
    Registered User
    Join Date
    Dec 2010
    Posts
    12

    Re: Help: how to use WRT only in Portrait mode?

    Hi Jappit,

    i have same problem , i want to make WRT in Portrait only. i checked your links but it is broken , i try to open this link for last two days but display "site not found".

    can you please guide me again for the same question?

  4. #4
    Registered User
    Join Date
    May 2008
    Posts
    8

    Re: Help: how to use WRT only in Portrait mode?

    Hi gomcoite and vimalrajpara.

    You can use widet.setDisplayPortrait to do that. Remember to check first does device support rotation using widget.isrotationsupported.
    For landscape mode you can use widget.setDisplayLandscape

    Example:

    if (widget.isrotationsupported) {
    // change the screen orientation
    widget.setDisplayPortrait();
    }

    - Vilu

Similar Threads

  1. 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
  2. Forceing Portrait Mode on n97
    By Corbella in forum Symbian
    Replies: 1
    Last Post: 2009-08-07, 10:09
  3. Stop Switching from Portrait to Landscape mode
    By Ashish Gupta in forum Mobile Java Media (Graphics & Sounds)
    Replies: 5
    Last Post: 2009-06-30, 10:04
  4. Replies: 0
    Last Post: 2008-11-07, 21:18
  5. How to force application always to stay in portrait mode?
    By wojciech.debowski in forum Symbian
    Replies: 4
    Last Post: 2008-05-16, 08: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
  •