I want to perform (battery consumption efficient) incoming and outgoing phone recordings (mic channel only) in xamarin android.
Hence, I will need following components:
a MediaRecorder performing the actual recording,
a BroadcastReceiver to notify about the phone status,
a background service which can be switched on and off in an app.
I found an android solution in http://stackoverflow.com/questions/18672031/recording-calls-in-android-why-this-not-works, however I can not override the onReceive() function during initialization of a member variable in C#.
Is there an elegant way to do this in Xamarin C#?
Or is there a better solution than having a MediaRecorder and Broadcastreceiver member in the service object?
Thanks in advance.