×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Regular Contributor
    Join Date
    Feb 2005
    Location
    Kista, Sweden
    Posts
    267

    Is it possible to set a J2ME app to only work in portrait mode?

    I have a problem with my app in landscape mode, so I wonder if it is possible to set it to work only in portrait mode?

    This would probably solve the issue that is described here:

    http://discussion.forum.nokia.com/fo...582#post754582

  2. #2
    Registered User
    Join Date
    Oct 2009
    Location
    Noida
    Posts
    941

    Re: Is it possible to set a J2ME app to only work in portrait mode?

    Use JAD attribute :

    Nokia-MIDlet-App-Orientation

    S60 5th Edition

    Allows MIDlet to force either portrait or landscape UI orientation. The orientation is only fixed on devices that support the specific layout.

    portrait or landscape

    On other platforms, you will get Displayable.sizeChanged() event call in such cases when user's change the orientation - you can just show a message to the end user that landscape mode is not supported and please switch back to Portrait.
    Thanks,
    Ekta

  3. #3
    Regular Contributor
    Join Date
    Feb 2005
    Location
    Kista, Sweden
    Posts
    267

    Re: Is it possible to set a J2ME app to only work in portrait mode?

    Thanks, I will try that. Do you mean that this attribute is only supported on S60 5th Edition?

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

    Re: Is it possible to set a J2ME app to only work in portrait mode?

    It is supported only on 5th Edition S60, and you might find there is not 100% support even then (it might not work on 5800 Xpress Music).

    Some other manufacturers have a similar option, that again will work on some devices, not others.

    Some devices, of course, do not have a portrait mode.

Similar Threads

  1. Help: how to use WRT only in Portrait mode?
    By gomcoite in forum Symbian
    Replies: 3
    Last Post: 2011-02-18, 22:55
  2. Portrait/Landscape mode switch
    By batora in forum Mobile Java General
    Replies: 4
    Last Post: 2010-02-10, 09:05
  3. Forceing Portrait Mode on n97
    By Corbella in forum Symbian
    Replies: 1
    Last Post: 2009-08-07, 10:09
  4. Supporting landscape/Portrait mode
    By gpalvia in forum Symbian User Interface
    Replies: 4
    Last Post: 2009-01-30, 08:50

Posting Permissions

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