×

Discussion Board

Results 1 to 8 of 8
  1. #1
    Registered User
    Join Date
    May 2008
    Posts
    34

    Unhappy Lock orientation change in N97

    Hi,
    i am making an application on N97.
    I want the application to work in portrait mode always,even iif the user opens keyboard or rotates the device.
    I have read many posts and used many suggestions like
    Code:
    SetOrientationL( CAknAppUi::EAppUiOrientationPortrait) ;
    but none of this works.
    Is there some roubust method for that??

  2. #2
    Nokia Developer Expert
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,143

    Re: Lock orientation change in N97

    that has worked for me, I usually call it in a ConstructL function of the Appui Class. Anyway, wiki also suggest alternative: http://wiki.forum.nokia.com/index.ph...UI_application

  3. #3
    Registered User
    Join Date
    May 2008
    Posts
    34

    Re: Lock orientation change in N97

    Hi, yucca ..
    thanx for your reply..

    I tried the other way
    Code:
    BaseConstructL(CAknAppUi::EAknEnableSkin | CAknAppUi::EAppUiOrientationPortrait);
    but then i donot get my toolbar in appview
    Code:
    iAknToolbar = iAppUi->CurrentPopupToolbar();
    here my toolbar is null. and so i get KERNEXEC 3 if i perform any operation on iAknToolbar .
    if i remove base constructl then there is no problem with toolbar. :(

  4. #4
    Nokia Developer Expert
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,143

    Re: Lock orientation change in N97

    I never used the toolbar, actually have old applciations that needs to also support older devices, so often building with 3rd ed MR and not using any APIs that come with newer platforms. Anyway, you are propably missing some flag there, you could try for exmaple adding: EAknTouchCompatible there as well.

  5. #5
    Registered User
    Join Date
    May 2008
    Posts
    34

    Re: Lock orientation change in N97

    Tried the EAknTouchCompatible flag..
    but didnt get any success..

  6. #6
    Super Contributor
    Join Date
    May 2004
    Posts
    2,265

    Re: Lock orientation change in N97

    Hi,

    how about this?

    Code:
    CAknToolbar* toolbar = iAppUi->CurrentFixedToolbar();
    Regards

    Ziteng Chen

  7. #7
    Registered User
    Join Date
    May 2008
    Posts
    34

    Re: Lock orientation change in N97

    but i have made a floating toolbar in my resource file.
    I still tried with CurrentFixedToolbar and got the same result :(
    thnx
    -daarsh
    Last edited by darshan.gandhi; 2010-08-06 at 12:31.

  8. #8
    Registered User
    Join Date
    May 2008
    Posts
    34

    Re: Lock orientation change in N97

    Hello guys..
    is there no method to achieve this??
    i am really surprised ..

Similar Threads

  1. N97 access compass using Orientation.getOrientation()
    By mpielot in forum Mobile Java General
    Replies: 20
    Last Post: 2011-01-19, 09:55
  2. Orientation issue on N97
    By jules_ in forum Mobile Java General
    Replies: 5
    Last Post: 2009-08-18, 13:19
  3. N97: How to detect when the screen orientation changes?
    By shockreaction in forum Mobile Java General
    Replies: 3
    Last Post: 2009-07-13, 11:47

Posting Permissions

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