×

Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 18
  1. #1
    Registered User
    Join Date
    Mar 2007
    Posts
    2

    How do I open phone app dialog in 3rd edition?

    Hi,

    Does anyone know how to open the phone application dialog box from code? I need to be able to input keypresses to the phone application from the idle state. Just sending the keypresses seems to work fine in 2nd edition, but not in 3rd.

    Sending keypresses works fine once you have pressed a physical key on the phone (which brings up the dialog), but sending (number) keypresses in idle state does nothing.

    I have tried 'TApaTask::BringToForeground()' and 'RWsSession::SetWindowGroupOrdinalPosition()' and even 'RApaLsSession::StartApp()'

    The above methods work fine to return the dialog to the foreground once a key has been pressed and the phone app sent to the background by using the application key longpress to return to idle state, but not if the dialog hasn't yet been displayed.

    I know the application UId and the window group ID. I don't know the view UId, so I can't use 'CCoeAppUi::ActivateViewL()' which I think may be the only solution left to me...

    Can anyone help?

    Thank you

  2. #2
    Registered User
    Join Date
    Mar 2007
    Posts
    2

    Cool Re: How do I open phone app dialog in 3rd edition?

    Fixed it!

    Used the undocumented (in 3rd edition SDK documentation) RWsSession::SimulateRawEvent to send the key event and it is handled correctly.. Interestingly SimulateKeyEvent wasn't handled correctly.

    Hope this helps anyone who has similar problems. The documentation for the SDK certainly didn't help me find a solution.

    -Oobly

  3. #3
    Regular Contributor
    Join Date
    May 2006
    Location
    Milan, Italy
    Posts
    92

    Re: How do I open phone app dialog in 3rd edition?

    hi, I have the same problem....

    is SimulateRawEvent the only method that I can use for fix it?

    I read on documentation that "Currently this function is used only for testing purposes. It is possible that it may in future be used by applications" and I would have a solution that I can use in my real application.

    thanks.

    Ste

  4. #4
    Super Contributor
    Join Date
    Nov 2004
    Location
    Wiltshire, UK
    Posts
    3,644

    Re: How do I open phone app dialog in 3rd edition?

    What are you trying to do?

    If you are trying to dial a number or send USSD codes, then use the phone client entension API in the extensions plugin SDK.

    Sending key presses is a very flaky approach

  5. #5
    Regular Contributor
    Join Date
    May 2006
    Location
    Milan, Italy
    Posts
    92

    Re: How do I open phone app dialog in 3rd edition?

    I'm trying to dial a voip corporate internal number ( my company has a voip server configured in the phone ).

    From the phone I manually enter only the internal number or from the phonebook I select the entry and then --> voip ( voice line, video, voip ) and the voip call starts, I would do that programmatically.

    I used CTelephony api's but the dial is always directed on the operator line.

    From the extension plugin SDK I tried ( http://www.forum.nokia.com/document/...VoIP_calls.htm ) in E61 show me the dial type dialog but not in E60 ...

    I read the Phone client extension section in the extension plugin, but I can't find examples that show how dial a call... there's some examples that I can use for understand this api's?

    thanks.

    Ste

  6. #6
    Super Contributor
    Join Date
    Nov 2004
    Location
    Wiltshire, UK
    Posts
    3,644

    Re: How do I open phone app dialog in 3rd edition?

    I am going to post a wiki entry in the next week.

    I need to post some extra code to get the API to work correctly.

    Also make sure you have the latest firmware using the Nokia Update service. The early VOIP stuff was a bit flaky
    Last edited by Paul.Todd; 2007-07-24 at 15:23.

  7. #7
    Super Contributor
    Join Date
    Nov 2004
    Location
    Wiltshire, UK
    Posts
    3,644

    Post Re: How do I open phone app dialog in 3rd edition?

    Here is the example to dial a phone number (Use need a devcert with network control at a minimum)

    _LIT(KPhoneClientResourceFile, "z:\\resource\\PhoneClient.rsc");
    TFileName resFile(KPhoneClientResourceFile);
    BaflUtils::NearestLanguageFile(CCoeEnv::Static()->FsSession(), resFile);
    const TInt offset = CCoeEnv::Static()->AddResourceFileL(resFile);

    TPhCltTelephoneNumber phoneNumber(_L("12345677890"));

    // Set the fields
    CPhCltDialer* dialer = CPhCltDialer::NewL();
    TPhCltExtPhoneDialData& dialData = dialer->DialData();
    dialData.SetTelephoneNumber(phoneNumber);
    dialData.SetSendKeyPressed(EFalse);
    dialData.SetContactId(KPhCltNoContact);
    dialData.SetWindowGroup(KPhCltGoToIdle);
    // Finally make the call
    dialer->ExecuteLD();

    // remove the resource file from CONE as its not needed
    // anymore - NB leaks if the executeld fails!!!!
    CCoeEnv::Static()->DeleteResourceFile(offset);

  8. #8
    Regular Contributor
    Join Date
    May 2006
    Location
    Milan, Italy
    Posts
    92

    Re: How do I open phone app dialog in 3rd edition?

    ok, thanks for the example code !!!

    in this moment I can't try it because if request network control capability I need to request to nokia the permission ( I have only simple dev certs now.. )
    in fact the application show me a permission denied on the line
    dialData.SetSendKeyPressed(EFalse);

    thanks.

    Ste

  9. #9
    Nokia Developer Moderator
    Join Date
    Oct 2006
    Location
    Finland
    Posts
    4,544

    Re: How do I open phone app dialog in 3rd edition?

    Quote Originally Posted by Paul.Todd View Post
    Here is the example to dial a phone number (Use need a devcert with network control at a minimum)

    _LIT(KPhoneClientResourceFile, "z:\\resource\\PhoneClient.rsc");
    TFileName resFile(KPhoneClientResourceFile);
    BaflUtils::NearestLanguageFile(CCoeEnv::Static()->FsSession(), resFile);
    const TInt offset = CCoeEnv::Static()->AddResourceFileL(resFile);

    TPhCltTelephoneNumber phoneNumber(_L("12345677890"));

    // Set the fields
    CPhCltDialer* dialer = CPhCltDialer::NewL();
    TPhCltExtPhoneDialData& dialData = dialer->DialData();
    dialData.SetTelephoneNumber(phoneNumber);
    dialData.SetSendKeyPressed(EFalse);
    dialData.SetContactId(KPhCltNoContact);
    dialData.SetWindowGroup(KPhCltGoToIdle);
    // Finally make the call
    dialer->ExecuteLD();

    // remove the resource file from CONE as its not needed
    // anymore - NB leaks if the executeld fails!!!!
    CCoeEnv::Static()->DeleteResourceFile(offset);
    I was testing the above code, but I dont find any reference to TPhCltTelephoneNumber or CPhCltDialer or TPhCltExtPhoneDialData in the documents. Am I missing something here?

    Help highly appreciated. Thanks in advance
    Neil

  10. #10
    Nokia Developer Moderator
    Join Date
    Oct 2006
    Location
    Finland
    Posts
    4,544

    Re: How do I open phone app dialog in 3rd edition?

    Also an addition to my question above: how do i set up a cone environment in my simple helloworld application?

    Thanks in advance
    Neil

  11. #11
    Nokia Developer Moderator
    Join Date
    Oct 2006
    Location
    Finland
    Posts
    4,544

    Re: How do I open phone app dialog in 3rd edition?

    For benefit of anybody searching the same, I found this how to set up cone env.

    http://www3.symbian.com/faq.nsf/0/20...9?OpenDocument

    Question is, would it work if I put in in constructL of appview of the simple helloworld app that i am testing in ??

    Thanks in advance for any help..
    Neil

  12. #12
    Super Contributor
    Join Date
    Nov 2004
    Location
    Wiltshire, UK
    Posts
    3,644

    Re: How do I open phone app dialog in 3rd edition?

    Thanks, I updated the wiki with notes on where to get the files from, you need to download the partner SDK API.

    http://wiki.forum.nokia.com/index.ph...lient_Dial_API

  13. #13
    Nokia Developer Moderator
    Join Date
    Oct 2006
    Location
    Finland
    Posts
    4,544

    Re: How do I open phone app dialog in 3rd edition?

    :) Thanks a million Paul. That was a HUGE help

    Neil

  14. #14
    Registered User
    Join Date
    Nov 2007
    Posts
    7

    Re: How do I open phone app dialog in 3rd edition?

    Quote Originally Posted by Paul.Todd View Post
    I am going to post a wiki entry in the next week.

    I need to post some extra code to get the API to work correctly.

    Also make sure you have the latest firmware using the Nokia Update service. The early VOIP stuff was a bit flaky
    I am encountering the following problem when running VoipCallHandle application that programmatically creates a voip call:

    "Unable to execute file for security reasons"

    I already own a developer certificate with the following capabilities:
    Read Device, Write Device, Trusted UI, Surrounding DD, SW Event, Location, Prot Srv, Power Mgmt, Read User Data, Write User Data, Network, User, Local Services.

    I was debugging the problem and it happens during the following function call:
    void CVoipCallHanEngine::DialL( const TDesC& aNumber)
    {
    _LIT(KPhoneClientResourceFile, "z:\\resource\\PhoneClient.rsc");
    TFileName resFile(KPhoneClientResourceFile);
    BaflUtils::NearestLanguageFile(CCoeEnv::Static()->FsSession(), resFile);
    const TInt offset = CCoeEnv::Static()->AddResourceFileL(resFile);
    TPhCltTelephoneNumber phoneNumber(aNumber);

    CPhCltDialer* dialer = CPhCltDialer::NewL();

    TPhCltExtPhoneDialData& dialData = dialer->DialData();
    dialData.SetTelephoneNumber(phoneNumber);
    dialData.SetContactId(KPhCltNoContact);
    dialData.SetCallType(EPhCltVoice);
    dialer->ExecuteLD();
    CCoeEnv::Static()->DeleteResourceFile(offset);
    }

    Is my problem caused due to lack of Network Control capability?
    If this is the problem, how I can get the certificate that contains this?

    This is the list of capabilites as shown from sisexplorer tool:
    http://dvukoje.dyndns.org/capabilites.jpg

    Could you please help me resolving this?



    Thanks,
    Darko

  15. #15
    Super Contributor
    Join Date
    Jun 2005
    Location
    Berlin
    Posts
    721

    Re: How do I open phone app dialog in 3rd edition?

    Quote Originally Posted by Paul.Todd View Post
    Here is the example to dial a phone number (Use need a devcert with network control at a minimum)

    _LIT(KPhoneClientResourceFile, "z:\\resource\\PhoneClient.rsc");
    TFileName resFile(KPhoneClientResourceFile);
    BaflUtils::NearestLanguageFile(CCoeEnv::Static()->FsSession(), resFile);
    const TInt offset = CCoeEnv::Static()->AddResourceFileL(resFile);

    TPhCltTelephoneNumber phoneNumber(_L("12345677890"));

    // Set the fields
    CPhCltDialer* dialer = CPhCltDialer::NewL();
    TPhCltExtPhoneDialData& dialData = dialer->DialData();
    dialData.SetTelephoneNumber(phoneNumber);
    dialData.SetSendKeyPressed(EFalse);
    dialData.SetContactId(KPhCltNoContact);
    dialData.SetWindowGroup(KPhCltGoToIdle);
    // Finally make the call
    dialer->ExecuteLD();

    // remove the resource file from CONE as its not needed
    // anymore - NB leaks if the executeld fails!!!!
    CCoeEnv::Static()->DeleteResourceFile(offset);
    Hello Paul,

    I am able to run the VoIPCallHandle example from wiki, but now I am facing a problem, the DialL() function in a console with cone enviroment crashed at the line: with error KERN-EXEC 3

    Code:
    dialer->ExecuteLD();
    I have created a cone environment with help from Symbian_Neil:
    http://www3.symbian.com/faq.nsf/0/20...9?OpenDocument


    Is it possible to run the CPhCltDialer in a console with ui-enviroment?


    Thanks

    Pai
    Symbian && Android && iPhoneOS

Similar Threads

  1. Replies: 35
    Last Post: 2009-04-11, 14:36
  2. Completely dead app on S60 3rd Edition
    By greatape in forum Symbian
    Replies: 3
    Last Post: 2006-09-29, 19:01
  3. Replies: 5
    Last Post: 2006-06-30, 12:06
  4. Replies: 0
    Last Post: 2006-03-29, 11:28
  5. Error running app on 3rd cell phone
    By Poyo_shiu in forum Symbian Tools & SDKs
    Replies: 6
    Last Post: 2006-02-21, 09:05

Posting Permissions

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