Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
A

AndroidContacts

> 编程语言
Open source

Easy to use library for contacts aggregation

100 stars0 likes1 views
WebsiteGitHub

About

Easy to use library for contacts aggregation

AndroidContacts


Gradle Dependency

Step 1. Add it in your root build.gradle at the end of repositories:

allprojects {
	repositories {
		...
		maven { url 'https://jitpack.io' }
    }
}

Step 2. Add the dependency

dependencies {
	implementation("com.github.blainepwnz:AndroidContacts:1.14.0")
}

Basic Usage

The minimum API level supported by this library is API 15. Library is not handling 23+ API permission.

Need to add permission to read contacts in manifest.

Basic usage
  1. Get all contacts from android device
  2. Get specific data from contacts
  3. Querying inside contacts
  4. Save new contacts
  5. Delete contacts
  6. Managing blocked contacts

Type of fields you can get

  • Phones
  • Emails
  • Addresses
  • Groups
  • Websites
  • Nickname
  • Note
  • SIP
  • Name
  • Events
  • Relations
  • Photo
  • Instant Messenger Addresses
  • Lookup key
  • Is favorite

Easiest way to get all data by one time:

new ContactsGetterBuilder(ctx)
    .allFields()
    .buildList();

Querying

Example: query that gets all contacts with photo and containing sequence "abc" in name.

new ContactsGetterBuilder(ctx)
    .onlyWithPhotos()
    .addField(FieldType.EMAILS, FieldType.ADDRESS)
    .withNameLike("abc");

Saving new contacts

ContactData data = ContactDataFactory.createEmpty();
...Fill it with data
// id of newly created contact
int id = new ContactsSaverBuilder(context)
    .saveContact(data);

Deleting contacts

val contactData = /* get contact data from somewhere */
val deleter = ContactsDeleter(context)
//usual delete with no need of callbacks
deleter.deleteContact(contactData)
//full range of callbacks, implement any you need
deleter.deleteContact(contactData) {
    onCompleted { }
    onFailure { }
    onResult { }
    doFinally { }
}

Additional info

More documentation

Changelog

More documentation

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Javaaggregationandroidandroid-librarycontacts

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言