3

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 ...

adrasa
  • 115
  • 1
  • 4
  • 13

3 Answers3

7

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

Imran Rana
  • 11,899
  • 7
  • 45
  • 51
3

Use the PhoneStateListener:

You can read more in the reference.

Orlymee
  • 2,349
  • 1
  • 22
  • 24
Langusten Gustel
  • 10,917
  • 9
  • 46
  • 59
0

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)

comodoro
  • 1,489
  • 1
  • 19
  • 30