How to get "Internet Call" Information in Android -
im working on android application in take backup of contact information , restore,i retreive information of contact, example:
display name
cursor cursor = getcontentresolver().query(contactscontract.contacts.content_uri,null,null, null, null) string name = cursor.getstring(cursor.getcolumnindexorthrow(contactscontract.contacts.display_name));
phone number
cursor phones = getcontentresolver().query(contactscontract.commondatakinds.phone.content_uri, null,contactscontract.commondatakinds.phone.contact_id +" = "+ contactid,null, null);
similary unable "internet call" value. kindly tell in class information internet call information.
any in regards appreciated.and urgent
dont know if best way, worked, new new android.
uri uri = contactscontract.data.content_uri; string[] projection = new string[] { contactscontract.data._id, contactscontract.data.display_name, contactscontract.commondatakinds.sipaddress.sip_address, contactscontract.commondatakinds.sipaddress.type, }; string selection = contactscontract.data.mimetype+" ='" +contactscontract.commondatakinds.sipaddress.content_item_type+"'"; string[] selectionargs = null; string sortorder = contactscontract.contacts.display_name+ " collate localized asc"; cursor cursor = managedquery(uri, projection, selection, selectionargs, sortorder);
it seems phone number stored in misc information data , have search on mime type.
hth
g.
Comments
Post a Comment