Android scripting: print call log

by igor.ganapolsky

The following python code will print out your call log:


import android

droid = android.Android()

myconst = droid.getConstants("android.provider.CallLog$Calls").result

calls = droid.queryContent(myconst["CONTENT_URI"],["name","number","duration"]).result

for call in calls:

    print call

~Courtesy of Pro Android Python with SL4A

Advertisements