×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Regular Contributor
    Join Date
    Jan 2009
    Posts
    224

    Smile How to get the screen resolution?

    hi.

    As u know i m implementing screensaver which is work on E60 & N80...

    but not perfectly look on Nokia 6110 navigator bcz screen resolution is small then E60 & N80..

    then how can i get the screen resolution??

    so i can put my images according to resolution...

    plz help me out...

  2. #2
    Regular Contributor
    Join Date
    Jul 2008
    Location
    Delhi, India
    Posts
    285

    Re: How to get the screen resolution?

    EIKAPPUI.H
    -----------------------
    Class CEikAppUi:

    TRect ApplicationRect();

  3. #3
    Super Contributor
    Join Date
    Aug 2005
    Location
    india
    Posts
    2,078

    Re: How to get the screen resolution?

    HI,

    use CWsScreenDevice api's.

    Regards,
    Mateen Maldar
    "Whatever the mind can conceive and believe, the mind can achieve"

  4. #4
    Nokia Developer Expert
    Join Date
    Jun 2008
    Posts
    333

    Re: How to get the screen resolution?

    you can use void GetDefaultScreenSizeAndRotation(TPixelsAndRotation &aSizeAndRotation) from CWsScreenDevice.
    on return,aSizeAndRotation contains The default screen size and rotation, defining screen size in pixels.

  5. #5
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,167

    Re: How to get the screen resolution?

    And, remember that with normal application framework based applications, you can get pointer to it easily with environment variable:

    CWsScreenDevice* screenDevice = CEikonEnv::Static()->ScreenDevice();

  6. #6
    Registered User
    Join Date
    Jun 2008
    Location
    India
    Posts
    1,048

    Re: How to get the screen resolution?

    hi,

    You can try using

    AknLayoutUtils::LayoutMetricsSize(AknLayoutUtils::EMainPane,iMainScreen);

    After getting metricsSize You can call
    iMainScreen.Width to get width of screen resolution

  7. #7
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,674

    Re: How to get the screen resolution?

    Although I would also use CWsScreenDevice, you can also check Hal::Get with EDisplayX/YPixels.

Similar Threads

  1. Java Games Screen Resolution
    By edwin756 in forum Mobile Java Games
    Replies: 4
    Last Post: 2008-10-31, 06:29
  2. Screen resolution
    By stenlik in forum Symbian
    Replies: 0
    Last Post: 2007-10-30, 09:32
  3. Text of StatusPane changes when screen resolution changes
    By Ishibo San in forum Symbian User Interface
    Replies: 4
    Last Post: 2006-12-14, 15:04
  4. N90 screen resolution
    By thongtom in forum General Development Questions
    Replies: 5
    Last Post: 2006-01-19, 16:50
  5. How to change screen mode / resolution on S60 3rd edition devices?
    By mriekert in forum Symbian User Interface
    Replies: 1
    Last Post: 2006-01-03, 09:31

Posting Permissions

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