Set FM Radio frequency in windows phone 7

try
{
	FMRadio myRadio = FMRadio.Instance;
	myRadio.PowerMode = RadioPowerMode.On;
	myRadio.CurrentRegion = RadioRegion.Europe;
	myRadio.Frequency = 91.5;
 
	if (FMRadio.Instance.SignalStrength == 0.0)
	{
	   MessageBox.Show("FM radio cannot run on emulator");
	}
}
catch (Exception ex)
{
  MessageBox.Show("FM Radio has thrown exception" + ex.Message);
}
 
The RadioRegion enumeration only support 3 frequency bands for FM Radio tuning.
1. UnitedStates
2. Japan
3. Europe ( could be used worldwide )

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.