android - How to programmatically open contacts pick with search filter entered programmatically? -


  1. 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

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -