×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Jun 2013
    Posts
    20

    [moved] How to register orientationlistener using lwuit

    Hi
    I develop for Nokia using Lwuit
    I want to control how many button that appear & their size depending on the mobile width & whether it is landscape or portrait
    and to do that I have to register the addorientationlistener but I don't know how.
    So could anyone help me in that
    & Thanks in advance

  2. #2
    Registered User
    Join Date
    Dec 2012
    Location
    India
    Posts
    264

    Re: [moved] How to register orientationlistener using lwuit

    You can set the orientation of a Form by using the Orientation class

    Code:
    Orientation.setAppOrientation(Orientation.ORIENTATION_LANDSCAPE);
    You will have to add this JAD attribute as well in the Application descriptor.

    Nokia-MIDlet-App-Orientation:manual

Similar Threads

  1. [moved] register my location (coordinate ) using J2ME code
    By souhir in forum Mobile Java General
    Replies: 12
    Last Post: 2013-02-13, 17:12
  2. Splash screen example - what is orientationlistener?
    By krikor20 in forum Mobile Java General
    Replies: 2
    Last Post: 2013-02-03, 19:13
  3. [moved] Register a sms command in the interceptor??
    By newbie2201 in forum Symbian Networking & Messaging (Closed)
    Replies: 3
    Last Post: 2009-01-18, 11:04

Posting Permissions

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