Listening to key events from app in the background
| Fri, 2007-01-05 13:52 | |
|
Hello,
is it possible for an app running in the background using the following code to listen to key events while it is still in hte BG? if yes how to do it, if not how to achieve it? Code: TApaTaskList taskList(CCoeEnv::Static()->WsSession()); TApaTask task = taskList.FindByPos(0); CApaWindowGroupName* wgName = CApaWindowGroupName::NewLC(CCoeEnv::Static()->WsSession(), task.WgId()); if (wgName->AppUid().iUid == 0xA000017F) Â Â Â task.SendToBackground(); CleanupStack::PopAndDestroy(wgName); |
|






Forum posts: 2009
Eric Bustarret
NewLC Founder & CEO / Professional Symbian OS Consultant
Forum posts: 123
i checked in teh documentation and found that this cunction belongs to RWindowGroup class. What is the way to get a handle to the WidnowGroup object of my client window session? I know how to get the RWindow and RWsSession but never tried getting RWindowGroup! I checked in the SDK but could not find anything. Any idea how?
cheers
Forum posts: 123
RWIndowGrou wg = iCoeEnv->RootWin();
i will try this and c what would happen.
cheers
Forum posts: 123
AF
Forum posts: 123
it did not wolr for me though!