I want to make an Android application that can record both incoming and outgoing calls in the background as a service in kotlin and at a particular time in the day, it sends all that recordings to a server by API. I had researched about it all I found is to use Device Policy Manager
and Telephoney Manager
but it is not much about it on the internet. So can you help me with any article, documentation, or tutorial?
Question posted in Android Studio
The official documentation can be found here.
The official documentation can be found here.
2
Answers
There is no solution from Google as of now. Google has deprecated the feature of recording the calls in it's latest versions of Android OS. Earlier it was possible, I had tried various methods but I was only getting the silent audio when I had tried to record calls. When using Google's Phone application it only allows that application to use the microphone and other things it won't allow any other application to overpower and get that hardware access.
But there are actually two hacks to do that.
first create MyCallRecordReceiver class
then in MainActivity
In addition Add it as a dependency in your app’s build.gradle file
and this