×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Nokia Developer Champion
    Join Date
    Nov 2012
    Location
    Karachi
    Posts
    89

    [moved] Nokia-MIDlet-App-Orientation : Landscape

    I am using this (Nokia-MIDlet-App-Orientation : landscape) property in s60 3rd edition 240by320 device, but this is not working and giving error.

    please can some one tell me that which phones uses this property.
    Shayan Rais (0344-2621149)
    Undergraduate - Computer & Information Systems Engineer (NED University)

    Facebook : https://www.facebook.com/messdevelopers
    Twitter : https://twitter.com/messdevelopers

  2. #2
    Nokia Developer Champion
    Join Date
    Mar 2013
    Posts
    602

    Re: Nokia-MIDlet-App-Orientation : Landscape

    Nokia-MIDlet-App-Orientation attribute is not supported on s60 3rd edition, it was introduced after.
    it is available on s60 5th edition, symbian^3 and Series40 dp 2.0 and later

  3. #3
    Nokia Developer Champion
    Join Date
    Nov 2012
    Location
    Karachi
    Posts
    89

    Re: Nokia-MIDlet-App-Orientation : Landscape

    SUMMARY: The content is not displayed correctly after switching from Portrait to Landscape.
    STEPS TO REPRODUCE:
    1. Download and install the content.
    2. Launch the application in Portrait mode.
    3. Switch the phone in Landscape mode.
    ACTUAL RESULTS: The application does not scale in full screen in Landscape mode and the bottom part of the display is cropped.
    EXPECTED RESULT: Content is displayed on device screen without any issues and is free of any illegibility and cropping issues. The application is fully functional in all screen resolutions and/or orientations.
    AFFECTED DEVICES: All support Landscape devices.
    FREQUENCY REPRODUCED: 100%.
    CORRECTIVE ACTIONS:
    Suggested fix #1: When switching from Portrait to Landscape, there should be a message displayed to the user that reads 'Landscape view is not supported. Please switch back to Portrait view'.
    Suggested fix #2: When switching from Portrait to Landscape view, it is also acceptable for the application to remain locked to Portrait view.
    Suggested fix #3: The application should fully work in Landscape mode without any scaling, illegibility, or cropping issues.


    How to fix this issue then ?
    Shayan Rais (0344-2621149)
    Undergraduate - Computer & Information Systems Engineer (NED University)

    Facebook : https://www.facebook.com/messdevelopers
    Twitter : https://twitter.com/messdevelopers

  4. #4
    Nokia Developer Champion
    Join Date
    Feb 2009
    Location
    Noida, India
    Posts
    3,073

    Re: Nokia-MIDlet-App-Orientation : Landscape

    For MIDP-2 devices.

    All Displayable objects (Form, Canvas, etc) define a method sizeChanged(width, height). This method is called whenever the size of the component changes. You need to override this method:

    Code:
    protected void sizeChanged(int newWidth, int newHeight) {
    // displayable size of this component has changed
    }
    Alternatively, a Canvas will normally receive a paint() event if the size changes. You can get the new size with getWidth() and getHeight(). This method works on Canvas only (not Form, etc.), but will work on MIDP-1 devices.

    When you get this size changed you can apply Suggested fix #1 - display the required msg in Alert.
    thanks,
    ~Amitabh
    (Champion of the Month -Aug'13)
    Follow me on my blog for Innovative Mobile Apps

Similar Threads

  1. Replies: 2
    Last Post: 2010-11-26, 09:04
  2. Nokia-MIDlet-App-Orientation: landscape
    By Utumno in forum Mobile Java General
    Replies: 3
    Last Post: 2010-04-13, 10:46
  3. portrait orientation and landscape orientation in N96
    By videoFx in forum [Archived] Flash Lite on Nokia Devices
    Replies: 0
    Last Post: 2009-05-20, 15:13
  4. Landscape orientation on CEikRichTextEditor
    By dsiorpaes in forum Symbian User Interface
    Replies: 1
    Last Post: 2006-04-07, 10:18
  5. Landscape Orientation
    By mobilitymag in forum Browsing and Mark-ups
    Replies: 1
    Last Post: 1970-01-01, 02:00

Posting Permissions

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