Yesterday I was looking into a way to acquire the call log of an android device.
My idea was to acquire everything posible and then parse it and get only what I really needed.
Following the documentation See CallLog.Calls Documentation I saw the different fields there are but when trying to get them I got erros caused by differences in the documentation.
Finally I got it to work so I wanted to share the code in case anyone else needs it.
In the code I use JSON objects and save them in the Documents folder.