How to add android phone contact to groups according to group_id -


i working on contact list project , far can want add contacts in phone group according group id. have find group id following code.

final string[] group_projection = new string[] {contactscontract.groups._id, contactscontract.groups.title };  cursor cursor = managedquery(contactscontract.groups.content_uri,group_projection, null, null, contactscontract.groups.title+ " asc"); 

now want pick contact phone , insert these contact specific group according these group ids.

thank in advance


Comments

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -