Android call logs handling -


how delete particular contactno (taken user via edittext) call logs programmatically ??

lemme elaborate.. have created 1 edittext field delete button. user enter mobile no. , user hits delete button, entered mobile no should removed calllogs.

please help.

thank you

u have following permission in manifast.xml

<uses-permission android:name="android.permission.read_contacts" /> <uses-permission android:name="android.permission.write_contacts" /> 

deleting calllogs particular number try way:

public void deletecalllogbynumber(string number)    {         string querystring="number="+number;       this.getcontentresolver().delete(calllog.calls.content_uri,querystring,null);   } } 

Comments

Popular posts from this blog

c++ - Linked List error when inserting for the last time -

java - activate/deactivate sonar maven plugin by profile? -

tsql - Pivot with Temp Table (definition for column must include data type) -- SQL Server 2008 -