zoukankan      html  css  js  c++  java
  • SendMessage and ProcessMessageL

    try SwEventWhich one? These methods don't seem to require anything specific.

    "I only know that I know nothing." (Socrates)check your capability...
    Now, after converting into Symbian 9, the message catching doesn't work again

    "I only know that I know nothing." (Socrates)Thanks, that did it.

    "I only know that I know nothing." (Socrates)hi,

    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"));
    }
    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?
  • 相关阅读:
    JVM运行参数
    JVM学习
    自己瞎写的小项目随笔
    git入门
    @ResponseBody 注释
    jquery 正则表达式 验证邮箱 手机号 座机号 身份证
    ORACLE计算一年的12个月份
    css 图片 文字居中
    Jquery 取值相关
    标题栏下拉菜单
  • 原文地址:https://www.cnblogs.com/yaoliang11/p/1912319.html
Copyright © 2011-2022 走看看