×

Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 26
  1. #1
    Registered User
    Join Date
    Jul 2007
    Posts
    42

    Question Activating speaker phone from application in S60 5th edition

    My application dials a number and I want to activate the speaker phone when the other side has answered. I do this in S60 3rd edition by sending a key event from my application to the Telephone application.
    I am now implementing the same behavior in S60 5th edition (N97 at the moment). The key event would not work here because none of the softkeys are used for activating the speaker phone. I think sending a Pointer event positioned over the speaker phone button should work but I have not succeeded yet.

    Has anyone tried this?
    Or has anyone a better solution?

    Thanks,

    Pedram

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,166

    Re: Activating speaker phone from application in S60 5th edition

    With 3rd edition would would be better using this one: http://wiki.forum.nokia.com/index.ph...he_loudspeaker

    Dunno if it works on 5th ed, anyway, feel free to try out..

  3. #3
    Nokia Developer Champion
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    4,039

    Re: Activating speaker phone from application in S60 5th edition

    try using the CallAudioControl API, it has a function to activate loudspeaker.so call that function when call is in answered state.

    Download that API from S60 3rd FP1 or FP2 plugin

  4. #4
    Registered User
    Join Date
    Jul 2007
    Posts
    42

    Re: Activating speaker phone from application in S60 5th edition

    Thank you!

    Can you tell me where I can find TelephonyInternalCRKeys.h ?
    Or any other header file where the values for KTelephonyAudioOutput and KTelephonyAudioOutputPreference can be found?

    I think the reason I used key events in the first place was that I had problem finding those two and I assumed they were not public.

  5. #5
    Registered User
    Join Date
    Jul 2007
    Posts
    42

    Re: Activating speaker phone from application in S60 5th edition

    Quote Originally Posted by vineet.jain View Post
    try using the CallAudioControl API, it has a function to activate loudspeaker.so call that function when call is in answered state.

    Download that API from S60 3rd FP1 or FP2 plugin
    Thanks, I will try that.

  6. #6
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,166

    Re: Activating speaker phone from application in S60 5th edition

    Check the link again, the Api plug-in link is near the top of the page

  7. #7
    Registered User
    Join Date
    Jul 2007
    Posts
    42

    Re: Activating speaker phone from application in S60 5th edition

    Quote Originally Posted by symbianyucca View Post
    Check the link again, the Api plug-in link is near the top of the page
    The page mentions that there is a "CR Keys To Control Phone Volume API" which also includes keys for routing the voice call between the earpiece and the loudspeaker. I downloaded the extension plug-in packages but the only related plug-in that I find is TwoCenRepKeysToControlPhoneVolume.ZIP which includes a header file TelephonyInternalCRKeys_partners.h and this file does not have KTelephonyAudioOutput or KTelephonyAudioOutputPreference.

    Is it possible that it was removed and we are supposed to use Call Audio Control API instead?

  8. #8
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,166

    Re: Activating speaker phone from application in S60 5th edition


  9. #9
    Registered User
    Join Date
    Jul 2007
    Posts
    42

    Re: Activating speaker phone from application in S60 5th edition

    Quote Originally Posted by symbianyucca View Post
    Thanks. I found the correct header file in Shared Data API.
    Unfortunately setting the central repository values with these keys do not work in S60 5th edition.
    I am going to try using Call Audio Control API.

  10. #10
    Nokia Developer Champion
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    4,039

    Re: Activating speaker phone from application in S60 5th edition

    im sure CallAudioControl will work for you

  11. #11
    Registered User
    Join Date
    Jul 2007
    Posts
    42

    Re: Activating speaker phone from application in S60 5th edition

    Quote Originally Posted by vineet.jain View Post
    im sure CallAudioControl will work for you
    It seems that I would need MultimediaDD capability to use CallAudioControl. Is that correct?
    In that case I would not be able to express sign.

  12. #12
    Nokia Developer Champion
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    4,039

    Re: Activating speaker phone from application in S60 5th edition

    hmm..i doubt its need, just give it a try without multimediadd

  13. #13
    Registered User
    Join Date
    Jul 2007
    Location
    Noida
    Posts
    1,503

    Re: Activating speaker phone from application in S60 5th edition

    Quote Originally Posted by pedramz View Post
    It seems that I would need MultimediaDD capability to use CallAudioControl. Is that correct?
    In that case I would not be able to express sign.
    Go to the link
    http://discussion.forum.nokia.com/fo...976#post591976

    i think Writdevicedata capability required for your operation
    Regards,
    Amit


    ****"Putting a Smile on other's faces is the essence of true Happiness"****

  14. #14
    Registered User
    Join Date
    Jul 2007
    Posts
    42

    Re: Activating speaker phone from application in S60 5th edition

    Quote Originally Posted by aamitgupta View Post
    Go to the link
    http://discussion.forum.nokia.com/fo...976#post591976

    i think Writdevicedata capability required for your operation
    I think my problem might be something else. What I want to do now is basically as follows,

    // This is in my header file
    CCallAudioControl *iCallAudioControl;


    // In ConstructL
    iCallAudioControl = CCallAudioControl::NewL();


    // And to activate loudspeaker
    iCallAudioControl->SetOutput(CCallAudioControl::ELoudspeaker);

    Compilation goes well but on the installation I get "Unable to install" in the last moment. I get this as soon as I have the NewL line in my code.

    Am I missing something?

  15. #15
    Nokia Developer Champion
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    4,039

    Re: Activating speaker phone from application in S60 5th edition

    have you installed a supporting sisx for callAudioControl which came with plugin

Similar Threads

  1. S60 5th edition emulator quits when I exit my application???
    By psdeepti in forum Symbian Tools & SDKs
    Replies: 3
    Last Post: 2009-08-19, 13:16
  2. Unable to install my application on s60 3rd & 5th edition
    By svaidya in forum Mobile Java Tools & SDKs
    Replies: 4
    Last Post: 2009-06-30, 09:55
  3. Python for S60 1.9.4 is now released
    By tvijayan in forum Symbian
    Replies: 9
    Last Post: 2009-05-27, 10:39
  4. Replies: 35
    Last Post: 2009-04-11, 14:36

Posting Permissions

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