×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Sep 2006
    Posts
    29

    Exclamation How to answer an incoming call by pressing "green" button while application is active

    Hi.
    My application has highest priority. So when I have an incoming call I can't answer. How can I allow user to answer by pressing standart "green" button ?

  2. #2
    Registered User
    Join Date
    Dec 2006
    Posts
    18

    Re: How to answer an incoming call by pressing "green" button while application is active

    There are few things which u can try ->

    1. Capture the Green button click event
    2. Make ur application as BackGround Application on Green button click

    // Send To Back
    TApaTaskList taskList(CEikonEnv::Static()->WsSession());
    TApaTask task = taskList.FindApp(KUidApplicationID);
    if(task.Exists())
    task.SendToBackground();

    3. Forward the Key clicked event so that other running application capture it.
    But i'm not sure how this code will be integrated to ur application because this code is for capturing the pressed keys. The following code using some sessions. You can have a detailed look on this code by searching Global Key capture code.

    TInt foregroundAppId = iWsSession.GetFocusWindowGroup();
    iWsSession.SendEventToWindowGroup( foregroundAppId, we );

  3. #3
    Regular Contributor
    Join Date
    May 2005
    Location
    Sweden
    Posts
    272

    Re: How to answer an incoming call by pressing "green" button while application is ac

    Or capture the key press and answer the call yourself (using CTelephony (Symbian 9) or RCall and friends (earlier version)).

    However, it'd probably be a good idea to consider making your app play a little nicer with the system.

Similar Threads

  1. Error while accepting an incoming call
    By yogesh14 in forum Symbian Networking & Messaging (Closed)
    Replies: 1
    Last Post: 2006-03-23, 03:55
  2. Replies: 1
    Last Post: 2005-12-01, 23:57
  3. Some of the importatnt link for Incoming Call related queries
    By umesh.roy in forum Symbian User Interface
    Replies: 0
    Last Post: 2005-01-25, 10:27
  4. Incoming call, 7650 and iPAQ
    By paller in forum Bluetooth Technology
    Replies: 0
    Last Post: 2003-03-19, 08:14
  5. Replies: 0
    Last Post: 2002-08-08, 22:54

Posting Permissions

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