android - How to programmatically open contacts pick with search filter entered programmatically? -
-
What should be the activity of taking contacts from my application with search fields? Can someone suggest if the URI has cheated me or anything to add to the intent?
Personal Static FINAL End PIC_CONTACT_SUBACTIVITY = 2; Private Zero Starter Activity () {Uri Uri = Uri.Parse ("Content: // Contact / People"); // In general, we pass the numbers eg Uri.encode ("987"), but I want to name because the filter is possible? // I also // uri = Yuri Trying Upepath (android.provider.ContactsContract.Contacts.CONTENT_FILTER_URI, Uri.encode ("pra")); // Uri = Uri With expected term (phone type CONTENT_FILTER_URI, Uri.encode ("Pvt")); Yuri = Uri. Along with expected terms (contactcact.contacts.contENT_FILTER_URI, Uri.encode ("Pvt")); Intention = Intention = Intent (Intent.ACTION_PICK, uri); startActivityForResult (intent, PICK_CONTACT_SUBACTIVITY); }
Can someone recommend how I can get it?
You can follow: or
Comments
Post a Comment