×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Aug 2005
    Posts
    8

    how can I suspend the application when a call arrive.

    I write a game(the controler derives CEikAppUi), when the game is running, a call arrives, How I suspend the game, and when the call hangs up , How I restart the game? The below code is about the processing the call.
    iObserver is a class which has functions Suspend() and Restart()


    if (iStatus == KErrNone)
    {
    if (iCallActive)
    {
    // We are polling for the RCall status
    if (iCallStatus == RCall::EStatusIdle)
    {
    iCallActive = EFalse;
    iCall.Close();
    iLine.NotifyIncomingCall(iStatus, iName);

    if (iObserver)
    {
    iObserver->Suspend();
    }
    }
    else if(iCallStatus == RCall::EStatusRinging)
    {
    if (iObserver)
    {
    iObserver->Suspend();
    }
    }
    else if(iCallStatus == RCall::EStatusAnswering)
    {
    if (iObserver)
    {
    iObserver->Suspend();
    }
    }
    else if(iCallStatus == RCall::EStatusHangingUp)
    {
    if(iObserver)
    {
    iObserver->Restart(); }
    }
    iCall.NotifyStatusChange(iStatus, iCallStatus);
    }
    else
    {
    // There's an incoming call!
    iCallActive = ETrue;
    iCall.OpenExistingCall(iLine, iName);
    iCall.NotifyStatusChange(iStatus, iCallStatus);
    }

  2. #2
    Regular Contributor
    Join Date
    Oct 2004
    Location
    india
    Posts
    306

    Re: how can I suspend the application when a call arrive.

    plzz chk handleforegroundeventL(Tbool flag)
    where flag is true if app is in foreground else false

    this way u can find out where app is in suspend mode or not

Similar Threads

  1. Call an EXE application from Java (J2ME)
    By rcaboni in forum Symbian
    Replies: 4
    Last Post: 2009-08-11, 13:57
  2. Problem in compiling telephony application on ARMIB platform
    By abdg27 in forum Symbian Networking & Messaging (Closed)
    Replies: 5
    Last Post: 2004-03-16, 08:48
  3. Does java application can recognize phone call
    By mikeaf in forum Mobile Java General
    Replies: 2
    Last Post: 2003-05-05, 15:06
  4. How do the application know about call using j2me
    By shiba in forum Mobile Java General
    Replies: 1
    Last Post: 2002-12-31, 06:24
  5. Can Java (J2ME) application call an Symbian exe
    By rcaboni in forum Mobile Java General
    Replies: 1
    Last Post: 2002-08-21, 15:42

Posting Permissions

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