×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Sep 2009
    Posts
    2

    How to disable the auto-rotate on 5800?

    Hello. I'm trying to disable the auto-rotate in the application for a J2ME game, so that I don't have to take any action when the device is going in landscape mode. Maybe someone can help me because I can't find a way to do this.
    Thank you.

  2. #2
    Super Contributor
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,395

    Re: How to disable the auto-rotate on 5800?

    You can try:

    Code:
    Nokia-MIDlet-App-Orientation: portrait
    But, a lot of people report problems with this on the 5800. If this doesn't work for you, then you can do nothing. You'll have to handle it one way or another.

    1. Make the game work in both orientations.

    2. Handle landscape by painting everything 90 degrees rotated, so it still appears in portrait.

    3. Display some message in landscape telling the user to rotate back. Make sure the game is in a "pause" state when the user rotates back to portrait.

    Graham.

  3. #3
    Registered User
    Join Date
    Sep 2009
    Posts
    2

    Re: How to disable the auto-rotate on 5800?

    Hi,

    Thank you for your reply. Actually I use the 3rd solution written by you, I display a message. But the moment when the screen goes from portrait to landscape or landscape to portrait first the old screen is painted and then my message shows up. So, for example, when I go from portrait to landscape, on the screen I see a painted image of 360x340, on the upper part of the phone. This is annoying for the gamer so I have to do something about it.

Similar Threads

  1. Auto rotate problem on n97
    By fpstudios in forum [Archived] Flash Lite on Nokia Devices
    Replies: 1
    Last Post: 2009-08-17, 15:20
  2. publisher id for disable auto rotate?
    By modifed09 in forum [Archived] Flash Lite on Nokia Devices
    Replies: 4
    Last Post: 2009-07-14, 13:15
  3. Flashlite 3.1 Nokia 5800 Video Object doesn't rotate on device
    By initapp in forum [Archived] Flash Lite on Nokia Devices
    Replies: 2
    Last Post: 2009-07-03, 03:01
  4. How to disable auto screen rotation?
    By olliwang in forum Symbian
    Replies: 1
    Last Post: 2008-11-08, 13:47
  5. Nokia PC Suite Auto Update, can you disable it?
    By iistudio in forum PC Suite API and PC Connectivity SDK
    Replies: 2
    Last Post: 2008-05-01, 05:43

Posting Permissions

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