Example analysis of Android getting call time
•
Android
We know that the call duration in the Android system should be managed by callog, so we suggest to check the contactprovider or the telephonyprovider
Service test
You can start the service when the call starts, record the current time a, and then stop self(); In addition, at the end of the call, start the service again to obtain the current time B again, and then compare the time a and B. string time = long.tostring (compare the post-processing time)
Then call
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码