Android Question How to clear or remove SMS history from callLog (Sent and Recieved)

Discussion in 'Android Questions' started by lazreg, Feb 19, 2015.

  1. lazreg

    lazreg Active Member Licensed User

    Hi All,,
    i used this code with reflection to clear Call Logs ,but SMS still in the Log Calls, i need a code to clear all logs calls+sms.

    Sub DelLogsCalls
    Dim r As Reflector
    r.Target = r.GetContext
    r.Target = r.RunMethod(
    Dim CONTENT_URI As Object = _
    "delete"Array As Object(CONTENT_URI, NullNull), Array As String("""java.lang.String""[Ljava.lang.String;"))
    ''You should also add the following permissions:
    End Sub
    yes i have another question : How to delete all stored contacts & SMS?
    Last edited: Feb 19, 2015
  2. Erel

    Erel Administrator Staff Member Licensed User

    Starting from Android 4.4 only the default messaging app can write to the sms logs (which are different than the call logs).
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice