Is it possible to utilize the users phone through their cell provider, and track the length of a phone call?
So the user presses a button in the app "Call Now". A call begins to a pre-determined number. We record the start time. When the call ends, we calculate how many minutes were used.
Possible?
To calculate time talked for both incoming , outgoing calls use the following broadcast receiver :
Register your receiver in your manifest file like this:
Also add the uses permission:
This may be too late but just for anyone who may need it in the future. For outgoing calls, you can read the duration from the CallLog. For incoming calls, you can calculate the duration based on the start and end times of the call.