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

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

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -