Forum Xamarin.Android


The Xamarin Forums have officially moved to the new Microsoft Q&A experience. Microsoft Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

To create new threads and ask questions head over to Microsoft Q&A for .NET and get involved today.

Recording Phone Calls using Xamarin

alpinestaralpinestar ATMember
edited December 2016 in Xamarin.Android


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, 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.


Sign In or Register to comment.