×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Regular Contributor
    Join Date
    Aug 2008
    Posts
    113

    can we listen to foreground events from background running executable

    Hi,
    I am stucked on a point...... My application Description

    The Scenario:
    I am working on a messaging application. Application consists of two parts:
    1. Background Running Executable: This application listens to the httpServer and pull the messages from the server time to time.
    2. Application Front Part: This application will take the messages from the background running executable and displays it on the front end of the application.


    My Requirement
    Now My requirement is to display some information in the form when the user opens the inbox.

    Proposed Solution
    As I have to listen to the events in the executable continuously forever so that whenever the sms inbox is opened in the mobile appropriate form will be opened.

    I can do this in two ways:
    1. I will get the tasklist int he executable and I will get the id of the sms window from the tasklist time to time but that will not solve my problem as in between that interval if the SMS Window is opened in closed than I would not be able to capture the event.

    2. I will create a class of AppUI from my console based Executable and from that I will get the necessary data, but the problem is that this will break my application architecture and also the symbian programming code conventions.....


    Now what I am trying to implement is creating a new class from my executable and in that class I will observe the sms window opening notification that will run for the infinite time.

    I want to know which of the approach is more correct and will not break the application code.

    Your advice is appreciated........ any kind of suggestions are welcome.


    Thanks
    Jason Smith Miller

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,689

    Re: can we listen to foreground events from background running executable

    Would not it be easier really putting your content into the Inbox of the Message Server? That way it would appear in the Messages application without further magics. And you may try implementing an own MTM in order to get some interaction.

  3. #3
    Regular Contributor
    Join Date
    Aug 2008
    Posts
    59

    Re: can we listen to foreground events from background running executable

    Hi JasonSmithMiller,

    You can listen for Foreground event in exe and if you want to display some message when inbox is opened then try for GlobalNote.

    Thanks
    -Shrinivas

  4. #4
    Regular Contributor
    Join Date
    Aug 2008
    Posts
    113

    Re: can we listen to foreground events from background running executable

    Hi....

    I tried global note but that wont helped me.... any other suggestions as it would not be possible to put the thing at the message end....


    Thanks
    J

  5. #5
    Registered User
    Join Date
    Jun 2006
    Location
    India
    Posts
    1,043

    Re: can we listen to foreground events from background running executable

    Hi,
    Is this thread not solving your problem already
    http://discussion.forum.nokia.com/fo...d.php?t=146057
    What is that you require now?? Are you able to capture the event of SMS inbx opening then you can have your own implementation there.
    Maximus
    S60 Developer
    Impossible is nothing

  6. #6
    Regular Contributor
    Join Date
    Aug 2008
    Posts
    113

    Re: can we listen to foreground events from background running executable

    Hi,
    That didnt helped me..... I am looking for some other way to make my requirement fulfill.....



    Thanks
    J

Similar Threads

  1. texteditor, background, foreground
    By noman_csedu in forum Symbian
    Replies: 4
    Last Post: 2007-08-22, 08:11
  2. texteditor, background, foreground
    By noman_csedu in forum Symbian
    Replies: 3
    Last Post: 2007-08-22, 07:38
  3. Bringing Background application to foreground
    By Varadarajanm in forum Symbian
    Replies: 1
    Last Post: 2007-02-21, 02:43
  4. Program background / foreground
    By jackxie in forum Mobile Java General
    Replies: 1
    Last Post: 2006-07-13, 18:36
  5. Running thread/process in background
    By T_N_Shetty in forum Mobile Java General
    Replies: 3
    Last Post: 2002-11-25, 10:23

Posting Permissions

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