My name is Ulrich Raab and I'm a software developer.
ulrichraab / rx-contacts Goto Github PK
View Code? Open in Web Editor NEWAndroid library to get contacts using RxJava
License: Apache License 2.0
Android library to get contacts using RxJava
License: Apache License 2.0
it looks like maven-metadata.xml in the repository was not updated properly, 'cause it does not contain information about 1.1.2:
<?xml version="1.0" encoding="UTF-8"?>
<metadata>
<groupId>de.ulrichraab</groupId>
<artifactId>rx-contacts</artifactId>
<version>1.1.1</version>
<versioning>
<latest>1.1.1</latest>
<release>1.1.1</release>
<versions>
<version>1.0.0</version>
<version>1.0.1</version>
<version>1.0.2</version>
<version>1.0.3</version>
<version>1.1.0</version>
<version>1.1.1</version>
</versions>
<lastUpdated>20160826083246</lastUpdated>
</versioning>
</metadata>
at the end of fetching the contacts, a cursor.close() need be called
Thanks. Very good solution. But Why I don't get all contacts ? Some contacts skips
Any idea how to get a companyName?
Hi. I need to filter "phoneNumbers" array. The code can take only the first element, but other skips. How to change my code to get expected result ? Thank you
public void loadContacts(Context context, String phoneField) {
RxContacts
.fetch(context)
.filter(contact -> contact.inVisibleGroup == 1)
.filter(contact -> !contact.phoneNumbers.isEmpty())
.filter(contact -> contact.phoneNumbers.iterator().next().contains(phoneField) || contact.displayName.toLowerCase().contains(phoneField.toLowerCase()))
.toSortedList((lhs, rhs) -> lhs.displayName.compareToIgnoreCase(rhs.displayName))
.compose(RxUtils.async())
.compose(mRxLoaderManager.restart(CONTACTS_LOADER))
.subscribe(this::handleResponse, this::handleError, this::onCompleted);
}
Getting error
Failed to resolve: de.ulrichraab:rx-contacts:1.1.3
Added project to project gradle
repositories {
maven {
url 'https://dl.bintray.com/ulrichraab/maven'
}
}
Added to module
dependencies {
compile 'de.ulrichraab:rx-contacts:1.1.3'
}
This gets phone numbers and email addresses, but leaves off physical addresses. Would be nice to have.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.