×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Super Contributor
    Join Date
    Feb 2008
    Location
    Belo Horizonte, Brazil
    Posts
    744

    Screen Orientation - Urgent!!! For Tuesday

    Please! Someone help ... I need to do a application just like RotateMe ... I've already did the whole application, but when in hide/background mode but the screen stops rotating!!! I tried this code:
    Code:
    sensor_type = sensor.sensors()['RotSensor']
    
    N95_sensor = sensor.Sensor(sensor_type['id'],sensor_type['category'])
    
    N95_sensor.set_event_filter(sensor.RotEventFilter())
    
    def get_sensor_data(status):
    
        if status == sensor.orientation.TOP :
    
            appuifw.app.orientation='portrait'
    
        elif status == sensor.orientation.RIGHT :
    
            appuifw.app.orientation='landscape'
    Does any one knows if there are other options for changing the screen orientation that works in background?!

    Thanks!!!

  2. #2
    Registered User
    Join Date
    Feb 2007
    Location
    Kyiv (Ukraine)
    Posts
    83

    Re: Screen Orientation - Urgent!!! For Tuesday

    Code:
            appuifw.app.orientation='portrait'
    
            appuifw.app.orientation='landscape'
    These functions rotate screen of your app only.
    Module appuifw can't rotate other apps.

  3. #3
    Super Contributor
    Join Date
    Feb 2008
    Location
    Belo Horizonte, Brazil
    Posts
    744

    Re: Screen Orientation - Urgent!!! For Tuesday

    So, what code should work out of the app?

  4. #4
    Super Contributor
    Join Date
    Feb 2008
    Location
    Belo Horizonte, Brazil
    Posts
    744

    Re: Screen Orientation - Urgent!!! For Tuesday

    any one??? please helppp!!

Similar Threads

  1. screen orientation
    By laaka in forum Symbian Media (Closed)
    Replies: 12
    Last Post: 2008-06-11, 08:04
  2. screen orientation
    By rkeskine in forum Symbian User Interface
    Replies: 7
    Last Post: 2007-10-04, 12:07
  3. screen orientation
    By davidmaxwaterman in forum Symbian
    Replies: 0
    Last Post: 2006-12-31, 06:27
  4. Not getting screen orientation in FP1 emulator??
    By mayur_24 in forum Symbian User Interface
    Replies: 2
    Last Post: 2006-12-14, 06:19
  5. direct screen access use with bitmap and pointer addresses URGENT !!!
    By sieber.nokia in forum Symbian Media (Closed)
    Replies: 8
    Last Post: 2005-10-28, 16:06

Posting Permissions

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