×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Nov 2004
    Posts
    15

    Question Auto screen rotation of N82

    Hello all,

    I would like to know is there any API to disable the auto-rotation?
    (Or is can only be disabled by set the "rotate screen" function to off?)

    Thanks.

    Regards,
    Hang
    Last edited by hangyc; 2008-11-20 at 07:53.

  2. #2
    Registered User
    Join Date
    Nov 2008
    Location
    New Delhi
    Posts
    11

    Re: Auto screen rotation of N82

    In J2ME, there is no API to disable the autoscreen rotation. ?User can manually disable this feature in settings.

    there is a alternate way to handle the event, when device comes into landscape mode, sizeChaged() method of Canvas class is called automatically . By implementing this method u can manage what u want to display on landscape mode on screen.


    ~Amardeep

  3. #3
    Registered User
    Join Date
    Nov 2004
    Posts
    15

    Re: Auto screen rotation of N82

    Hi Amardeep,

    Thanks for the reply.

    Hang

  4. #4
    Registered User
    Join Date
    Jun 2003
    Posts
    1

    Re: Auto screen rotation of N82

    What I do is I create a screen buffer the same size as the canvas and when sizeChanged is called I check to see if I'm in landscape mode.

    If I am, I render as normal to the buffer and render the image buffer to the screen rotated 90 degrees so effectively I fake it not rotating. Downside is on QVGA phones that costs you 307k in heap but unfortunately the beloved phone manufacturers didn't think of that.

Similar Threads

  1. How to disable auto screen rotation?
    By olliwang in forum Symbian
    Replies: 1
    Last Post: 2008-11-08, 13:47
  2. How to handle screen rotation? (N93)
    By JOM in forum Symbian
    Replies: 2
    Last Post: 2008-01-10, 09:44
  3. screen rotation problem
    By davidmaxwaterman in forum Symbian
    Replies: 0
    Last Post: 2007-10-12, 06:29
  4. Replies: 0
    Last Post: 2006-03-01, 11:25
  5. More on Building screen rotation software
    By davidmiron in forum Symbian Tools & SDKs
    Replies: 0
    Last Post: 2002-10-07, 22:56

Posting Permissions

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