Confirmed users
398
edits
Line 18: | Line 18: | ||
For handling changing of |status|, the App should listen on ContactsManager::oncontactchange event. | For handling changing of |status|, the App should listen on ContactsManager::oncontactchange event. | ||
== | == Add a Friend == | ||
Most communication Apps have their own contacts. The information in their contacts database are very similar. Basically, the user need only one copy of them. They don't want to maintain multiple copy of contacts. So, the user will keep all contacts in the database of Contacts API and forget contacts of communication Apps. But, communication Apps still maintain their-owned contacts for showing status of friends or for other purposes. | Most communication Apps have their own contacts. The information in their contacts database are very similar. Basically, the user need only one copy of them. They don't want to maintain multiple copy of contacts. So, the user will keep all contacts in the database of Contacts API and forget contacts of communication Apps. But, communication Apps still maintain their-owned contacts for showing status of friends or for other purposes. | ||
=== Add a Number from Call History === | |||
So, the idea is to borrow the experience of mobile phone. When you ask your friend for phone number, you will call it at first to make sure the number is correct. Then, you create a new contact from call history. You select the number of your friend from call history and the phone will ask you what do you want to do. You ask the phone to add the phone number to contacts, then you pick up an existing contact or create a new one. It can also be applied to SIP phone or Skype. When the user make a call, it add a new record with Call History API. Then, the user read all history with Call History App, and select the SIP phone number/address or Skype friend account to create a new contact, or add it to an existing one. | So, the idea is to borrow the experience of mobile phone. When you ask your friend for phone number, you will call it at first to make sure the number is correct. Then, you create a new contact from call history. You select the number of your friend from call history and the phone will ask you what do you want to do. You ask the phone to add the phone number to contacts, then you pick up an existing contact or create a new one. It can also be applied to SIP phone or Skype. When the user make a call, it add a new record with Call History API. Then, the user read all history with Call History App, and select the SIP phone number/address or Skype friend account to create a new contact, or add it to an existing one. | ||
=== Add a New Friend at Communication App === | |||
Another scenario is to wake up Contacts App to handle the new friend account/address/or number when adding a new friend in a communication App. That is saying, when the user add a friend in Skype, Skype will wake up Contacts App and ask it to record that account. Then Contact App will ask the user if he want to create a new contacts or to add the account/address/or number to an existing contacts. | Another scenario is to wake up Contacts App to handle the new friend account/address/or number when adding a new friend in a communication App. That is saying, when the user add a friend in Skype, Skype will wake up Contacts App and ask it to record that account. Then Contact App will ask the user if he want to create a new contacts or to add the account/address/or number to an existing contacts. | ||