×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Jun 2012
    Posts
    3

    Lwuit S40 Orientation change problem

    Hi all, I´m developing an app for S40 SDK 2.0 and using S40 Lwuit implementation, i got a problem when i use the orientation listener and i change the orintation: If I start the app in landscape mode and then during the run i change to portrait, the bottom of the screen is cut, like if the screen size got fixed as the height when it was in landscape mode. The cut part appears as a white bar. You can see this same issue in the Tourist Atraction demo app in the S40 Lwuit page, run the app in landscape mode and then change it to portrait mode and the screen will be cut. Has anyone found a solution for this? I have tried capturing the event of the orientation change and giving a specified height to the form, but with no luck. Thanks in advance.

  2. #2
    Registered User
    Join Date
    Jun 2012
    Location
    Brasil
    Posts
    15

    Re: Lwuit S40 Orientation change problem

    This is a real bug.
    I see this in the N97 phones and I gave up trying change the orientation.
    I also realized that this bug affects the "tiles" of the Game Canvas, in this part of the screen they disappear. To circumvent the problem of the tiles I used images one by one to do the job of tiles.

    In your case you can try to specify the screen size manually in each orientation. This bug is in the return valor of "getHeight()" and "getWidth()".

    Good luck!

  3. #3
    Registered User
    Join Date
    Jan 2009
    Location
    Melbourne, Australia
    Posts
    2,578

    Re: Lwuit S40 Orientation change problem

    If you haven't already, please post a defect in the Series 40 LWUIT project. Then the owners can evaluate and hopefully provide a fix!

  4. #4
    Registered User
    Join Date
    Jun 2012
    Location
    Brasil
    Posts
    15

    Re: Lwuit S40 Orientation change problem

    I see this bug is repeated in various devices, including other manufacturers like Motorola for over 7 years. I think it's a bug of Java VM, it makes sense because the latest version MIDP 2.1 is quite old, at that time there were not many devices that could change the screen orientation.

Similar Threads

  1. LWUIT Signed Midlet Issues (VIbrate/Orientation)
    By ocallagh in forum Mobile Java General
    Replies: 0
    Last Post: 2011-04-07, 03:45
  2. Replies: 3
    Last Post: 2010-09-03, 12:16
  3. Problem with change screen orientation
    By svopex in forum Symbian User Interface
    Replies: 2
    Last Post: 2009-11-10, 12:19
  4. How to get notification on change in Orientation.
    By savaj in forum Symbian User Interface
    Replies: 5
    Last Post: 2008-08-20, 13:55

Posting Permissions

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