how make call log app in android

不羁岁月 提交于 2019-12-18 13:38:45

问题


I'm a newbie programmer android I want to make an android app to record phone activities such as incoming calls, outgoing calls, or miss call and record the logs to a file .txt

what should I do ? please help me ...


回答1:


Take a look at CallLog.Calls


Here are some good tutorials on using call log:

android-tutorial-call-logs

Call Log in Android Application

reading-call-log-from-phone

accessing-call-logs




回答2:


Use the PhoneStateListener:

  • Android Developer: Telephony-PhoneStateListener

You can read more in the reference.




回答3:


You probably want to create a service that periodically records call logs. I'd recommend using the CallLog class and since you're a newbie, some tutorial on creating services (use Google)



来源:https://stackoverflow.com/questions/10970732/how-make-call-log-app-in-android

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!