Forum Xamarin.Android
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

Recording Phone Calls using Xamarin

alpinestaralpinestar ATMember
edited December 2016 in Xamarin.Android

Hello,

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.

Posts

Sign In or Register to comment.