How i know current state is the main screen display of phone ( not screensaver )?
How i know current state is the main screen display of phone ( not screensaver )?
You mean something like #32 in http://discussion.forum.nokia.com/fo...ad.php?t=99603 ?
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