SendMessage and ProcessMessageL
| Mon, 2005-05-09 09:44 | |
|
I try to send message to my APP from EXE. Code: RWsSession rws; rws.Connect(); TApaTaskList taskList(rws); TApaTask task = taskList.FindApp(KAppUid); if (task.Exists()) { task.BringToForeground(); TInt ret=task.SendMessage(TUid::Uid( 0 ), _L8("1")); } In my app I try to catch it Code: in header: virtual void ProcessMessageL(TUid aUid,const TDesC8& aParams); in source: void CMDMNotifierAppUi::ProcessMessageL(TUid aUid,const TDesC8& aParams) { ShowNoteL(_L("MEssage arrives")); } The message is sent without errors, but nothing is catched. The app is brought into foreground correctly. What can cause this lack of action? "I only know that I know nothing." (Socrates) |
|






Forum posts: 9
try this:
RWsSession rws;
rws.Connect();
TApaTaskList taskList(rws);
TApaTask task = taskList.FindApp(KAppUid);
if (task.Exists())
{
task.BringToForeground();
TInt ret=task.SendMessage(TUid::Uid( KUidApaMessageSwitchOpenFileValue ), _L8("1"));
}
Forum posts: 214
"I only know that I know nothing." (Socrates)
Forum posts: 214
"I only know that I know nothing." (Socrates)
Forum posts: 23
Forum posts: 214
"I only know that I know nothing." (Socrates)
Forum posts: 23
Forum posts: 214
Probably have to figure out something else
"I only know that I know nothing." (Socrates)
Forum posts: 214
Actualy it works OK. I had changed UID in 3rd edition and didn't find the app
"I only know that I know nothing." (Socrates)