Android API의android.provider.ContactsContract

3000 단어 Provider
android.provider.ContactsContract
Contacts Contract는 연락처provider와 app의contract입니다.지원되는 URL 및 column이 정의되어 있습니다.이전 Contacts 를 대체합니다.
Overview
Contacts Contract는 연락처 정보에 대한 확장 가능한 데이터베이스를 정의합니다.Contact 정보는 3층 데이터 모델로 저장됩니다.
1. Data 테이블은 모든 유형의 개인 데이터를 저장합니다.예를 들어 전화번호, 이메일 주소 등.Data 테이블에 있는 데이터 유형 세트는 열려 있습니다(무제한).일반적인 데이터 형식 집합을 제공합니다.모든 앱은 자신의 데이터 형식을 추가할 수 있습니다.
2. RawContacts 테이블의 데이터 세트는 한 사람과 이 사람의 계정을 설명한다.(예: 사용자의 Gmail 계정)
3. Contacts 테이블은 동일한 사용자를 설명하는 하나 이상의 RawContas의 집계 데이터를 보여줍니다.RawContacts 테이블의 데이터 또는 관련 데이터가 변경될 경우 Contacts의 데이터도 변경될 수 있습니다.
추가 테이블:
Other tables include:
  • Groups , which contains information about raw contact groups such as Gmail contact groups. The current API does not support the notion of groups spanning multiple accounts.
  • StatusUpdates , which contains social status updates including IM availability.
  • AggregationExceptions , which is used for manual aggregation and disaggregation of raw contacts
  • Settings , which contains visibility and sync settings for accounts and groups.
  • SyncState , which contains free-form data maintained on behalf of sync adapters
  • PhoneLookup , which is used for quick caller-ID lookup
  • 좋은 웹페이지 즐겨찾기