×

Discussion Board

Results 1 to 9 of 9
  1. #1
    Regular Contributor
    Join Date
    May 2007
    Posts
    320

    How to lock Phone call key?

    Hi friends,
    I am doing an application where I need to lock Phone call key for few seconds. Does anybody know how to lock the Phone call key? Please tell me if you have any ideas on this...
    Thanks in advance.

    Regards,
    ash_21.
    Life is Short..... Live it with Positive Attitude...

  2. #2
    Registered User
    Join Date
    Aug 2008
    Location
    Hyderabad
    Posts
    35

    Smile Re: How to lock Phone call key?

    Use this function in the AppUi so that u can handle the call key


    void HandleWsEventL(const TWsEvent &aEvent,CCoeControl *aDestination)//native function
    {
    TInt key = aEvent.Key()->iScanCode;

    if(EStdKeyYes == key && aEvent.Type() == EEventKeyDown)//Green Key
    {
    Handle the required event
    return;
    }
    }

    Please let me know if you have any more issue and hope so your problem will be fixed

  3. #3
    Super Contributor
    Join Date
    Mar 2004
    Location
    Bangalore,India
    Posts
    2,146

    Re: How to lock Phone call key?

    Quote Originally Posted by ash_21 View Post
    Hi friends,
    I am doing an application where I need to lock Phone call key for few seconds. Does anybody know how to lock the Phone call key? Please tell me if you have any ideas on this...
    Thanks in advance.

    Regards,
    ash_21.
    What do you mean by locking the phone call key?Doing that is never a good idea, however what you can do is to capture the Green key or the phone call key as you call it, and handle it in your application.

    Cheers,
    Mayank

  4. #4
    Regular Contributor
    Join Date
    May 2007
    Posts
    320

    Re: How to lock Phone call key?

    Quote Originally Posted by mayankkedia View Post
    What do you mean by locking the phone call key?Doing that is never a good idea, however what you can do is to capture the Green key or the phone call key as you call it, and handle it in your application.

    Cheers,
    Mayank
    Thanks mayank for your valuable reply. I searched a lot on this issue but didnt get specified information. My problem is that my application is getting panic if I make multiple call at a time. So i just want to give some time delay & for that purpose I want to lock key for few seconds.
    If you have any idea on this issue pls let me know I will work on that.
    Thanks once again.
    Life is Short..... Live it with Positive Attitude...

  5. #5
    Regular Contributor
    Join Date
    May 2007
    Posts
    320

    Re: How to lock Phone call key?

    Quote Originally Posted by gangadhar.bonda View Post
    Use this function in the AppUi so that u can handle the call key


    void HandleWsEventL(const TWsEvent &aEvent,CCoeControl *aDestination)//native function
    {
    TInt key = aEvent.Key()->iScanCode;

    if(EStdKeyYes == key && aEvent.Type() == EEventKeyDown)//Green Key
    {
    Handle the required event
    return;
    }
    }

    Please let me know if you have any more issue and hope so your problem will be fixed
    Thanks Gangadhar for your quick response. I will check this code.
    Life is Short..... Live it with Positive Attitude...

  6. #6
    Super Contributor
    Join Date
    Mar 2004
    Location
    Bangalore,India
    Posts
    2,146

    Re: How to lock Phone call key?

    Quote Originally Posted by ash_21 View Post
    Thanks mayank for your valuable reply. I searched a lot on this issue but didnt get specified information. My problem is that my application is getting panic if I make multiple call at a time. So i just want to give some time delay & for that purpose I want to lock key for few seconds.
    If you have any idea on this issue pls let me know I will work on that.
    Thanks once again.
    But then thats not really related to the call key per se, you have to check in your code/add logic to ensure that you dont make too many calls too fast/or see if there are any logical gaps/memory leaks etc if you make calls fast enough. Coz even if you block the call key what if the user makes call from the native contacts app using the Call option from the menu..?

    Search for key capture on wiki and you will get the links.

    Cheers,
    Mayank

  7. #7
    Regular Contributor
    Join Date
    May 2007
    Posts
    320

    Re: How to lock Phone call key?

    Quote Originally Posted by mayankkedia View Post
    But then thats not really related to the call key per se, you have to check in your code/add logic to ensure that you dont make too many calls too fast/or see if there are any logical gaps/memory leaks etc if you make calls fast enough. Coz even if you block the call key what if the user makes call from the native contacts app using the Call option from the menu..?

    Search for key capture on wiki and you will get the links.

    Cheers,
    Mayank
    Hi mayank,
    i changed the logic of my application but the problem is occuring in TApaTask. Do you have any idea regarding TApaTask & GPRS connection.
    Waiting for your reply.
    Thanks in advance.
    Life is Short..... Live it with Positive Attitude...

  8. #8
    Super Contributor
    Join Date
    Mar 2004
    Location
    Bangalore,India
    Posts
    2,146

    Re: How to lock Phone call key?

    Well unless you detail the exact error/issue u r facing, even if I have idea about TAPATask I am afraid it wont be of much use to u.
    Cheers,
    Mayank

  9. #9
    Regular Contributor
    Join Date
    May 2007
    Posts
    320

    Re: How to lock Phone call key?

    Quote Originally Posted by mayankkedia View Post
    Well unless you detail the exact error/issue u r facing, even if I have idea about TAPATask I am afraid it wont be of much use to u.
    My issue is that when I am forwarding my data to the server for the first time it's going properly but when I make multiple call operations (outgoing) my GPRS connection is getting deactivated when my application is in hidden state. But when I make it visible in Menubar then my application is working properly with the logic I have developed.
    Also I am getting sometimes User 42 error.
    I hope you get an idea about my problem.
    Waiting for your reply.
    Thanks.
    Life is Short..... Live it with Positive Attitude...

Similar Threads

  1. Replies: 2
    Last Post: 2010-05-01, 15:29
  2. Call Conferencing Issue.
    By aamitgupta in forum Symbian
    Replies: 5
    Last Post: 2009-06-12, 08:15
  3. voip call via PhoneClientDialAPI
    By morost in forum VoIP
    Replies: 1
    Last Post: 2009-06-09, 12:11
  4. Replies: 106
    Last Post: 2009-05-11, 05:53

Posting Permissions

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