Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User tunylund's Avatar
    Join Date
    Feb 2009
    Posts
    7
    I'm developing a game that is supposed to use sensor api for controls and I specifically do not want to change the screen orientation automatically when the phone is rotated sideways. I want it to stay in the portrait mode. The problem I'm having is that I cannot find a way to prevent this from happening. Can someone please instruct how this can be done with 5th edition?

  2. #2
    Nokia Developer Expert symbianyucca's Avatar
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    28,712
    one way would be to use set the orientation, then the default automatic would be swithed off.

  3. #3
    Registered User pandhari.gorde's Avatar
    Join Date
    Nov 2008
    Location
    Mumbai-India
    Posts
    379
    Quote Originally Posted by tunylund View Post
    I'm developing a game that is supposed to use sensor api for controls and I specifically do not want to change the screen orientation automatically when the phone is rotated sideways. I want it to stay in the portrait mode. The problem I'm having is that I cannot find a way to prevent this from happening. Can someone please instruct how this can be done with 5th edition?
    use SetOrientationL() of appui to set the orintation

  4. #4
    Regular Contributor kapnkore's Avatar
    Join Date
    Apr 2009
    Location
    Delhi
    Posts
    136
    check out this .hope it will help you http://wiki.forum.nokia.com/index.ph...UI_application

  5. #5
    Nokia Developer Champion vineet.jain's Avatar
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    3,861
    hi..tunylund, pass the following in Your BaseConstructL() function of APPui:

    BaseConstructL(EAppOrientationLandscape)or the other option for portrait mode and Your app will always be in the defined mode.

Similar Threads

  1. Porting S60 3rd Ed application to 5th Ed
    By Asif Nazir in forum Symbian User Interface
    Replies: 4
    Last Post: 2009-05-08, 12:37
  2. Strange linker error in 5th Ed GCCE build
    By mrtj in forum Symbian Tools & SDKs
    Replies: 1
    Last Post: 2009-05-06, 17:31
  3. Disable screen orientation change
    By shankx in forum [Archived] Flash Lite on Nokia Devices
    Replies: 5
    Last Post: 2009-05-05, 23:45
  4. How to change the setting of Screen saver?
    By LatestFall in forum Symbian C++
    Replies: 4
    Last Post: 2005-11-29, 03:09
  5. how to change Screen from Form to FullCanvas
    By ihadreampp in forum Mobile Java General
    Replies: 3
    Last Post: 2003-08-15, 08:50

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved