×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Mar 2003
    Posts
    8

    How i know current state is the main screen display of phone?

    How i know current state is the main screen display of phone ( not screensaver )?

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,737

    Re: How i know current state is the main screen display of phone?


  3. #3
    Regular Contributor
    Join Date
    Sep 2004
    Posts
    90

    Re: How i know current state is the main screen display of phone?

    That's my current implementation - works for me:

    #ifdef __WINS__
    const TUid KUidStandBy = { 0x100058b3 };
    #else
    const TUid KUidStandBy = { 0x101fd64c };
    #endif
    ...
    TBool CMyClass::IsStandByScreenVisibleL()
    {
    CApaWindowGroupName* gn = CApaWindowGroupName::NewL(CCoeEnv::Static()->WsSession(), CCoeEnv::Static()->WsSession().GetFocusWindowGroup());
    TUid currentFocusWindowUID = gn->AppUid();
    delete gn;
    return (KUidStandBy == currentFocusWindowUID);
    }
    --
    Tobias
    http://s60ticker.stoeger-it.de/sdk

Similar Threads

  1. Replies: 2
    Last Post: 2007-11-10, 13:19
  2. Can't return display to full screen??
    By danparks in forum Symbian User Interface
    Replies: 2
    Last Post: 2005-10-10, 05:32

Posting Permissions

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