Code Monkey home page Code Monkey logo

rx-contacts's Introduction

Ulrich Raab

My name is Ulrich Raab and I'm a software developer.

rx-contacts's People

Contributors

ulrichraab avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

rx-contacts's Issues

Address support

This gets phone numbers and email addresses, but leaves off physical addresses. Would be nice to have.

Failed to resolve lib

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'
}

can't get 1.1.2 version from repository

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>

cursor not closed

at the end of fetching the contacts, a cursor.close() need be called

How to make a search request ?

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);
    }

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.