EnableApplicationLauncher with SystemProperty.PhoneActiveCallCount propery change. RRS feed

  • Question

  • Hi everyone,
    I am trying to write an application that will automatically run on an active call, meaning an incoming call is answered or an outgoing call was answered by its target.
    I wrote this code to enable my application:

    activeCalls = new SystemState(SystemProperty.PhoneActiveCallCount);
    activeCalls.ComparisonType = StatusComparisonType.Greater;
    activeCalls.ComparisonValue = 0;

    activeCalls.EnableApplicationLauncher("MyUniqueLauncherID", ApllicationPath);

    while debugging using the cellular emulator, I encountered a strange thing: my application starts running on incoming call, BEFORE I ANSWERED. I tried to use PhoneCallTalking property instead, and to run my application when it changes to 'true', but I got the same results.
    Anyone has an idea what am i am doing wrong?
    Monday, January 11, 2010 10:29 PM


  • Hi,

    I think it is expected behavior, please try to use SystemProperty.PhoneCallTalking instead.

    Zhe Zhao
    • Marked as answer by ZHE ZHAO Monday, January 18, 2010 3:05 AM
    Thursday, January 14, 2010 7:02 AM