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
Use the PhoneStateListener:
You can read more in the reference.