kandi background
Explore Kits

android_contact_picker | Easily display and retrieve contact information | Android library

 by   codinguser Java Version: Current License: No License

 by   codinguser Java Version: Current License: No License

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
Support
Support
Quality
Quality
Security
Security
License
License
Reuse
Reuse

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.
This Library - Support
Best in #Android
Average in #Android
This Library - Support
Best in #Android
Average in #Android

quality kandi Quality

  • android_contact_picker has 0 bugs and 5 code smells.
This Library - Quality
Best in #Android
Average in #Android
This Library - Quality
Best in #Android
Average in #Android

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.
This Library - Security
Best in #Android
Average in #Android
This Library - Security
Best in #Android
Average in #Android

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.
This Library - License
Best in #Android
Average in #Android
This Library - License
Best in #Android
Average in #Android

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.
This Library - Reuse
Best in #Android
Average in #Android
This Library - Reuse
Best in #Android
Average in #Android
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

Installation

copy iconCopydownload iconDownload

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

Usage

copy iconCopydownload iconDownload
	private static final int GET_PHONE_NUMBER = 3007;

	public void getContact() {		
		startActivityForResult(new Intent(this, ContactsPickerActivity.class), GET_PHONE_NUMBER);
	}

	// Listen for results.
	@Override  
	protected void onActivityResult(int requestCode, int resultCode, Intent data){
	    // See which child activity is calling us back.
	    switch (requestCode) {
	        case GET_PHONE_NUMBER:
	            // This is the standard resultCode that is sent back if the
	            // activity crashed or didn't doesn't supply an explicit result.
	        	if (resultCode == RESULT_CANCELED){
	            	Toast.makeText(this, "No phone number found", Toast.LENGTH_SHORT).show();
	            } 
	            else {
	            	String phoneNumber = (String) data.getExtras().get(ContactsPickerActivity.KEY_PHONE_NUMBER);  
	                //Do what you wish to do with phoneNumber e.g.
	                //Toast.makeText(this, "Phone number found: " + phoneNumber , Toast.LENGTH_SHORT).show();
	            }
	        default:
	            break;
	    }
	}

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.

DOWNLOAD this Library from

Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from
over 430 million Knowledge Items
Find more libraries
Reuse Solution Kits and Libraries Curated by Popular Use Cases

Save this library and start creating your kit

Explore Related Topics

Share this Page

share link
Try Top Libraries by codinguser
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from
over 430 million Knowledge Items
Find more libraries
Reuse Solution Kits and Libraries Curated by Popular Use Cases

Save this library and start creating your kit

  • © 2022 Open Weaver Inc.