Poser une questionPoser une question
 

TraitéeHow to get the information of a selected phonecall number?

  • samedi 18 avril 2009 02:11yongshi123 Médailles de l'utilisateurMédailles de l'utilisateurMédailles de l'utilisateurMédailles de l'utilisateurMédailles de l'utilisateur
     
    How to get the information of a selected phonecall number?

    for example ,when i get into the phone application ,and then click a phonenumber ,it will get to a call history interface.

    i wonder how can i do that ?

Réponses

  • samedi 18 avril 2009 07:28AlexFeinmanMVPMédailles de l'utilisateurMédailles de l'utilisateurMédailles de l'utilisateurMédailles de l'utilisateurMédailles de l'utilisateur
     Traitée
    You can get access to the call log data using Call Log API
    Alex Feinman. MVP .NET Compact Framework
  • vendredi 24 avril 2009 08:31Raffaele Limosani [MSFT] Médailles de l'utilisateurMédailles de l'utilisateurMédailles de l'utilisateurMédailles de l'utilisateurMédailles de l'utilisateur
     Traitée
    The "Contact Details" dialog you're referring to is based on the "Contacts Database", not on the clog (phone call history). Apart from the first item "Last Call", which is indeed retrieved by using the APIs Alex mentioned (and that is removed when clearing the call history), the SELECTED item is the last way that contact was contacted and it can be mail\sms\mobile\work\home etc. It's something you can retrieve by using POOM, related to the PIMPR_SMARTPROP property -- see doc at http://msdn.microsoft.com/en-us/library/bb415504.aspx: (Remarks) “The Smart Property (PIMPR_SMARTPROP) is the Contact property that contains the property ID of the default communication mode. This becomes the phone number or address displayed on the second line of the two-line display in the Contact list view, and highlighted in the Contact summary tab.”.


    Thanks,
    ~raffaele
    http://blogs.msdn.com/raffael

    This posting is provided 'as is' with no warranties and confers no rights.

Toutes les réponses

  • samedi 18 avril 2009 07:28AlexFeinmanMVPMédailles de l'utilisateurMédailles de l'utilisateurMédailles de l'utilisateurMédailles de l'utilisateurMédailles de l'utilisateur
     Traitée
    You can get access to the call log data using Call Log API
    Alex Feinman. MVP .NET Compact Framework
  • mardi 21 avril 2009 05:53yongshi123 Médailles de l'utilisateurMédailles de l'utilisateurMédailles de l'utilisateurMédailles de l'utilisateurMédailles de l'utilisateur
     
    thanks for Alex Feinman's reply

    But it was not  what i wanted.i want to get to the interface where there are three item:last phonecall,call to *****(phonenumber) ,and send message to ********(phonenumber)

    Could someone help me ?

    thanks in advanced!


    yongshi123
  • vendredi 24 avril 2009 05:35Chunsheng TangMSFT, ModérateurMédailles de l'utilisateurMédailles de l'utilisateurMédailles de l'utilisateurMédailles de l'utilisateurMédailles de l'utilisateur
     
    You may need to build an user interface yourself, making use of the Call Log API Alex mentioned.
    Please mark the post that helps you, and unmark that does not. This benefits our community members.
  • vendredi 24 avril 2009 08:31Raffaele Limosani [MSFT] Médailles de l'utilisateurMédailles de l'utilisateurMédailles de l'utilisateurMédailles de l'utilisateurMédailles de l'utilisateur
     Traitée
    The "Contact Details" dialog you're referring to is based on the "Contacts Database", not on the clog (phone call history). Apart from the first item "Last Call", which is indeed retrieved by using the APIs Alex mentioned (and that is removed when clearing the call history), the SELECTED item is the last way that contact was contacted and it can be mail\sms\mobile\work\home etc. It's something you can retrieve by using POOM, related to the PIMPR_SMARTPROP property -- see doc at http://msdn.microsoft.com/en-us/library/bb415504.aspx: (Remarks) “The Smart Property (PIMPR_SMARTPROP) is the Contact property that contains the property ID of the default communication mode. This becomes the phone number or address displayed on the second line of the two-line display in the Contact list view, and highlighted in the Contact summary tab.”.


    Thanks,
    ~raffaele
    http://blogs.msdn.com/raffael

    This posting is provided 'as is' with no warranties and confers no rights.