×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    May 2008
    Location
    Vienna
    Posts
    1

    Auto rotate Canvas on N95

    hi,

    I would like to know if there is any possibility in J2ME for supporting user initiated screen orientation changes like on the N95. My issues is to adapt the canvas content on a changed screen orientation e.g. 360x240 <-> 240x360.

    thanx in advance,
    Hannes

  2. #2
    Nokia Developer Champion
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,405

    Re: Auto rotate Canvas on N95

    Displayable objects have a sizeChanged(int w, int h) method that is automatically called everytime their size is changed, having as arguments the new Displayable width and height. So, using it, you can easily check for those size changes and then adapt your content to new dimensions.

    Pit

Similar Threads

  1. canvas lost when dial called in N95
    By sj034166 in forum Symbian
    Replies: 4
    Last Post: 2008-03-06, 13:52
  2. Classic N95 vs US ver. N95
    By qwerty0824 in forum General Development Questions
    Replies: 5
    Last Post: 2007-09-13, 18:09
  3. Problem developing canvas based application for N95
    By shallu_taneja in forum Mobile Java Tools & SDKs
    Replies: 2
    Last Post: 2007-09-07, 06:20
  4. N95 Some Questions & Suggestions
    By subzero_brighton in forum General Development Questions
    Replies: 0
    Last Post: 2007-06-22, 15:37
  5. Major problem with delegation to Canvas
    By bartekn in forum Mobile Java Media (Graphics & Sounds)
    Replies: 8
    Last Post: 2003-10-08, 17:46

Posting Permissions

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