×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Jul 2011
    Posts
    7

    Catch the event when the app switches from Portrait to Landscape for S60 by Java

    Hi everyone! I'm having a issue in my game. My game was developed for S40 6th and it run very well, but when it run in S60 devices, it had a error when switching from Portrait to Landscape. I want my game just only run in Portrait mode so how should i do? I have tried to repair my source code a lot but the good result doesn't come. Please tell me how to fix the solution. I use J2ME to develop.
    Thanks for all.

  2. #2
    Nokia Developer Expert
    Join Date
    Aug 2007
    Posts
    1,595

    Re: Catch the event when the app switches from Portrait to Landscape for S60 by Java

    Hello hat0203,

    on the latest Symbian devices since S60 5th Edition it is possible to set the application to orientation or landscape only by using the following JAD attribute and values for it:

    Nokia-MIDlet-App-Orientation: landscape

    Nokia-MIDlet-App-Orientation: portrait

    More about:

    Java Developer's Library 3.11 > Developer's guides > Application framework > JAD and JAR manifest attributes:

    http://library.developer.nokia.com/i...E4A538FB8.html

    Regards,
    r2j7
    [URL="http://library.forum.nokia.com/java"][B] >>> Java Developer's Library <<<[/B][/URL]
    [URL="https://www.developer.nokia.com/Resources/Support/Technical_support.xhtml"] [B]>>> Technical Support for Java ME development <<<[/B][/URL]
    [URL="https://publish.ovi.com/info/"][B]>>> Nokia Publish: reach millions of Nokia users worldwide through Nokia Store <<<[/B][/URL]

  3. #3
    Registered User
    Join Date
    Jul 2011
    Posts
    7

    Re: Catch the event when the app switches from Portrait to Landscape for S60 by Java

    Thanks r2j7 so much. I will try it.

Similar Threads

  1. Replies: 2
    Last Post: 2010-12-03, 11:32
  2. [moved] Display rotation (Portrait\ Landscape) from Java
    By arieel in forum Mobile Java General
    Replies: 1
    Last Post: 2010-03-27, 14:08
  3. Portrait/Landscape N95
    By IkerJ in forum Mobile Java Media (Graphics & Sounds)
    Replies: 8
    Last Post: 2007-09-12, 09:26
  4. E61/E62 Portrait, Landscape
    By viktor_m in forum Symbian
    Replies: 5
    Last Post: 2007-02-21, 15:02

Posting Permissions

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