kandi background

android_contact_picker | Easily display and retrieve contact information on Android | Android library

Download this library from

kandi X-RAY | android_contact_picker Summary

android_contact_picker is a Java library typically used in Mobile, Android applications.,roid_contact_picker has no bugs, it has no vulnerabilities, it has build file available and it has low support. You can download it from GitHub, Maven.
Easily display and retrieve contact information on Android

kandi-support Support

  • android_contact_picker has a low active ecosystem.
  • It has 141 star(s) with 67 fork(s). There are 10 watchers for this library.
  • It had no major release in the last 12 months.
  • There are 6 open issues and 6 have been closed. On average issues are closed in 138 days. There are 1 open pull requests and 0 closed requests.
  • It has a neutral sentiment in the developer community.
  • The latest version of android_contact_picker is current.

quality kandi Quality

  • android_contact_picker has 0 bugs and 5 code smells.

securitySecurity

  • android_contact_picker has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
  • android_contact_picker code analysis shows 0 unresolved vulnerabilities.
  • There are 4 security hotspots that need review.

license License

  • android_contact_picker does not have a standard license declared.
  • Check the repository for any license declaration and review the terms closely.
  • Without a license, all rights are reserved, and you cannot use the library in your applications.

buildReuse

  • android_contact_picker releases are not available. You will need to build from source code and install.
  • Deployable package is available in Maven.
  • Build file is available. You can build the component from source.
  • Installation instructions, examples and code snippets are available.
  • It has 621 lines of code, 35 functions and 18 files.
  • It has medium code complexity. Code complexity directly impacts maintainability of the code.
Top functions reviewed by kandi - BETA

kandi has reviewed android_contact_picker and discovered the below as its top functions. This is intended to give you an instant insight into android_contact_picker implemented functionality, and help decide if they suit your requirements.

  • Initializes the contacts activity .
  • Called when a contact has been selected .
  • Create a CursorLoader
  • Create the Contacts list .
  • Called when the menu item is clicked .
  • Called when a query text is changed .
  • Called when a list item is clicked .
  • Attaches the OnContactSelectedListener to the Activity .
  • Called when a contact number is selected .
  • Close the searchView .

android_contact_picker Key Features

Easily display and retrieve contact information on Android

android_contact_picker Examples and Code Snippets

  • Installation
  • Usage

Installation


compile 'com.codinguser.android:contactpicker:3.0.0@aar'

Community Discussions

Trending Discussions on android_contact_picker
  • how to add multi contact picker?
Trending Discussions on android_contact_picker

QUESTION

how to add multi contact picker?

Asked 2017-Nov-24 at 07:23

I am following this library to add contact picker https://github.com/codinguser/android_contact_picker, and I am able to get numbers successfully from adding to my EditTextBox but, I want to add multiple contacts selected from contact and add only number in particular EditTextView this is my contact picker activity, I am stuck about that where to add adapter to complete that, any help?:

public class ContactsPickerActivity extends AppCompatActivity implements OnContactSelectedListener {
public static final String SELECTED_CONTACT_ID  = "contact_id";
public static final String KEY_PHONE_NUMBER     = "phone_number";
public static final String KEY_CONTACT_NAME     = "contact_name";


@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_contacts);

    FragmentManager         fragmentManager     = this.getSupportFragmentManager();
    FragmentTransaction     fragmentTransaction = fragmentManager.beginTransaction();
    ContactsListFragment fragment           = new ContactsListFragment();

    fragmentTransaction.replace(R.id.fragment_container, fragment);
    fragmentTransaction.commit();

    ActionBar actionBar = getSupportActionBar();
    if (actionBar != null) {
        actionBar.setDisplayHomeAsUpEnabled(true);
        actionBar.setTitle("Select contact");
    }
}


@Override
public void onContactNameSelected(long contactId) {
    /* Now that we know which Contact was selected we can go to the details fragment */

    Fragment    detailsFragment = new ContactDetailsFragment();
    Bundle      args            = new Bundle();
    args.putLong(ContactsPickerActivity.SELECTED_CONTACT_ID, contactId);
    detailsFragment.setArguments(args);
    FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();

    transaction.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN);
    // Replace whatever is in the fragment_container view with this fragment,
    // and add the transaction to the back stack
    transaction.replace(R.id.fragment_container, detailsFragment);

    transaction.addToBackStack(null);
    // Commit the transaction
    transaction.commit();
}

/**
 * Callback when the contact number is selected from the contact details view 
 * Sets the activity result with the contact information and finishes
 */
@Override
public void onContactNumberSelected(String contactNumber, String contactName) {
    Intent intent = new Intent();
    intent.putExtra(KEY_PHONE_NUMBER, contactNumber);
    intent.putExtra(KEY_CONTACT_NAME, contactName);

    setResult(RESULT_OK, intent);
    finish();
}

ANSWER

Answered 2017-Nov-24 at 06:09

Try this library https://github.com/1gravity/Android-ContactPicker it will help you to pick multiple contacts. You will get selected contacts in onActivityResult() method, from here you can display it in editText.

Source https://stackoverflow.com/questions/47467097

Community Discussions, Code Snippets contain sources that include Stack Exchange Network

Vulnerabilities

No vulnerabilities reported

Install android_contact_picker

In order to use the library, add the following line to your Gradle dependencies:.

Support

For any inquiries, you can reach me at ngewif@codinguser.com.

Explore Related Topics

Build your Application

Share this kandi XRay Report