×

Discussion Board

Results 1 to 14 of 14
  1. #1
    Registered User
    Join Date
    Sep 2008
    Location
    Vancouver, Canada
    Posts
    588

    about HandleWsEvent method

    hi

    i have implemented the HandleWsEvent method for my application to get the notification, as soon as a new application gets started.
    it is working fine if the application is in focus. But, if the application is running but is not in focus, it does not get any notification.

    can anyone suggest what could be the problem?

  2. #2
    Nokia Developer Champion
    Join Date
    Jan 2008
    Location
    Moscow, Russia
    Posts
    3,347

    Re: about HandleWsEvent method

    You mean that when non-gui app started you don't receive notification? That's because it don't create window group.
    In this case you can try to monitor active processes and then if you have a new one - handle this event.

  3. #3
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,143

    Re: about HandleWsEvent method

    Background applications generally do not need HandleWsEvent's, so could you tell us what it is that you would want to catch ?

  4. #4
    Registered User
    Join Date
    Sep 2008
    Location
    Vancouver, Canada
    Posts
    588

    Re: about HandleWsEvent method

    no no not a non-gui application
    a GUI application should be notified to my application

  5. #5
    Registered User
    Join Date
    Sep 2008
    Location
    Vancouver, Canada
    Posts
    588

    Re: about HandleWsEvent method

    not a non-gui application
    a GUI application should be notified to my application

  6. #6
    Nokia Developer Champion
    Join Date
    Jul 2007
    Location
    ShenZhen, China
    Posts
    4,346

    Re: about HandleWsEvent method

    did you want to known a new gui app started event, and maybe the new gui app not is focused gui, if yes, it maybe not in HandleWsEevnt, it seems not api for the purpose, or monitor TApaTaskList.
    ----------------------------
    坚持学习, 坚持编码
    http://www.devdiv.net/
    qxiaoyuan

  7. #7
    Registered User
    Join Date
    Sep 2008
    Location
    Vancouver, Canada
    Posts
    588

    Re: about HandleWsEvent method

    no sir

    that is want notification about a just started GUI application is right.

    but i want it even if my application is not in focus...

    i hope now u got me

  8. #8
    Super Contributor
    Join Date
    Nov 2004
    Location
    Wiltshire, UK
    Posts
    3,644

    Re: about HandleWsEvent method

    Download Symbian OS now! [url]http://developer.symbian.org[/url]

  9. #9
    Registered User
    Join Date
    Sep 2008
    Location
    Vancouver, Canada
    Posts
    588

    Re: about HandleWsEvent method

    still u ppl didn't get me

    my application which i want to get notification is also a GUI application(not a background process).
    and the application of which i want notification, is also a GUI application

  10. #10
    Registered User
    Join Date
    Mar 2006
    Location
    India
    Posts
    503

    Re: about HandleWsEvent method

    Suppose there are Two apps A and B.And both are GUI application.
    You want to notify your "A" Appliacation that "B" is in foreground or background and vice verse.Is that is the case ..
    Regards
    Kamal :)
    ------------------
    You never expect what expects you.

  11. #11
    Registered User
    Join Date
    Sep 2008
    Location
    Vancouver, Canada
    Posts
    588

    Re: about HandleWsEvent method

    exactly

    now u got me

  12. #12
    Registered User
    Join Date
    Mar 2006
    Location
    India
    Posts
    503

    Re: about HandleWsEvent method

    can i ask u a question why there is a reason to implement to two gui application .." A" and "B"

    wht you can do is:

    1:IPC mechanism between two application so that you are notified which one is the foreground and background.
    IPC can be
    1:Client Server.
    2:Publish and subscribe.

    this is one way i can see.
    Regards
    Kamal :)
    ------------------
    You never expect what expects you.

  13. #13
    Nokia Developer Champion
    Join Date
    Jan 2008
    Location
    Moscow, Russia
    Posts
    3,347

    Re: about HandleWsEvent method

    Or simply do monitor foreground app as Paul.Todd mentioned above - Capturing foreground events

  14. #14
    Registered User
    Join Date
    Dec 2005
    Posts
    1,236

    Re: about HandleWsEvent method

    Exactly, if any other application is coming in to focus then that would mean your Application B is in Background.
    Regards,
    Sriky

Similar Threads

  1. What is happening in InputStream.Skip method?
    By orsteglasy in forum Mobile Java Networking & Messaging & Security
    Replies: 0
    Last Post: 2007-03-02, 19:34
  2. Is switching to another Canvas inside a paint() method OK?
    By falconpl in forum Mobile Java General
    Replies: 2
    Last Post: 2006-05-06, 00:15
  3. Methods, that take lots of space
    By doctordwarf in forum Mobile Java General
    Replies: 4
    Last Post: 2003-07-30, 11:05

Posting Permissions

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