Récupérer le contact lié à un appel terminé
Vous pouvez récupérer le contact lié à un appel terminé depuis le journal d'appels sur un terminal BlackBerry.
Échantillon de code
String phoneNum = "519-555-0151";
PhoneCallLogID callLog = new PhoneCallLogID(phoneNum);
BlackBerryContact contact = callLog.getContact();
if (contact != null)
{
String[] name = contact.getStringArray(Contact.NAME, 0);
add(new RichTextField("The matching contact is " + name[Contact.NAME_GIVEN]
+ " " + name[Contact.NAME_FAMILY]));
}
else
{
add(new RichTextField("There is no matching contact"));
}
Sujet suivant: Récupérer des contacts par numéro de téléphone
Sujet précédent: Récupérer le contact lié à un appel actif
Ces informations vous ont-elles été utiles ? Envoyez-nous vos commentaires.