×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Jul 2008
    Posts
    103

    Orientation after taking picture on N8

    Hello,
    I have a midlet which takes a picture (I use a canvas) and then switches back to a form (I stop the camera player after taking picture). After it returns to form, on N8, screen orientation cannot be changed anymore (using auto-rotate) and the midlet gets stuck in landscape mode. On older phones (N87, N95) auto-rotate works. Any idea how to switch back to portrait mode after opening camera?

  2. #2
    Nokia Developer Expert
    Join Date
    Dec 2008
    Posts
    3

    Re: Orientation after taking picture on N8

    Hi,

    In N8 (Symbian^3) camera player is always displayed in landscape. While camera viewfinder is displayed then orientation is in landscape. I think you have to close camera with player.close() rather than player.stop().
    Can you provide some more details about the problem? Maybe some code snippet.

  3. #3
    Nokia Developer Expert
    Join Date
    Dec 2008
    Posts
    3

    Re: Orientation after taking picture on N8

    To be more specific, here is clip from soon to be released documentation about camera viewfinder: "From JRT 2.1 onwards, UI orientation is forced to landscape mode when the camera player is realized (Player in state REALIZED). The orientation remains in landscape mode until the camera player is closed. (Player in state CLOSED)"

  4. #4
    Registered User
    Join Date
    Jul 2008
    Posts
    103

    Re: Orientation after taking picture on N8

    Thanks for the answer. You are right, closing the camera solves the orientation problem. The downside is that I have to initialize the camera every time I switch to the camera screen (and close it when I exit the screen).

Similar Threads

  1. Replies: 2
    Last Post: 2010-12-06, 10:46
  2. How to disable auto orientation in Flash Lite 4 of N8?
    By yeggo in forum [Archived] Flash Lite on Nokia Devices
    Replies: 7
    Last Post: 2010-11-28, 22:55
  3. Taking a picture through Python and working on it in c++
    By pdcb_pdcb in forum Symbian Media (Closed)
    Replies: 6
    Last Post: 2007-11-21, 18:16
  4. Previewing a picture before taking
    By evellasques in forum Symbian
    Replies: 1
    Last Post: 2004-02-05, 09:20

Posting Permissions

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