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.

Routing audio to speaker when headphone is plugged in

I am trying to have sound played through the device speaker when a headphone device is plugged in (in this case, a magstripe reader). However, nothing I have tried seems to work. At a basic level I thought this would work:

MediaPlayer player = MediaPlayer.Create(this, mySound);

And have also tried to adapt this and this with no luck.

Has anyone had any success with this?

Sign In or Register to comment.