FMRadio will be back in Windows Phone 8 GDR2: Use it with care!

When we look at what’s new in the GDR2, we will be served with the FMRadio API again. The API itself wasn’t gone really, only the implementation does fire exceptions. But we know we can use the FMRadio again from GDR2. How could we write code that doesn’t fail because of this?

So we need to know the version number from which the GDR2 release starts to be able to write code that checks the version number against the GDR2 release version number.

When we look at the Windows Phone 8 update history, we actually see two version numbers for the GDR2 release. The version number depends on the specific phone model and mobile operator, it could be either 8.0.10327.77 or 8.0.10328.78. My guess is to only check against the lowest version number of the two. However the SDK emulator update for GDR2 shows a different version number 8.0.10322.0. So I better use that lower version number so you can use the emulator. So before you try to use the FMRadio in your Windows Phone 8 app, check if the API is even supported. Besides it can still happen that your phone doesn’t even support FMRadio (which is the case for the emulator (as far as I know).

Hope this code helps you when you want to write code against the FMRadio in a Windows Phone 8 app.

var gdr2Version = new Version(8,0,10322,0);
FMRadio radioInstance = null;
if (Environment.OSVersion.Version >= gdr2Version)
{
    try
    {
        radioInstance = FMRadio.Instance;
    }
    catch (RadioDisabledException)
    {
        radioInstance = null;
    }
}
if (radioInstance != null)
{
    //Do the operations you want to do on the Radio Instance.
}

 

Update August 12th:

Pedro Lamas, wrote an excellent article which is related: FMRadio vs. BackgroundAudioPlayer... fight!!

Basically, even if you’re not using the FMRadio directly, you should be aware of a problem that exists in the GDR2 update which affect all apps that use audio, whether it’s using the BackgroundAudioPlayer or just simply a MediaElement. Read Pedro’s article for the details.

  • Gravatar Matthijs August 9th, 2013 at 22:18
    I would skip the OS version check, just catch the exception. The 620 doesn't have the FM radio for example, no matter what OS version.
  • Gravatar Mark Monster August 10th, 2013 at 12:09
    Hi Matthijs,

    You're right about that approach, it will work as well. Though if catching exception can be prevented, I will try it. Both approaches will gain a working solution.
  • Gravatar boutiques hollister en france May 3rd, 2014 at 10:00
    http://www.amazon.fr/Chemises-DAXON-Homme/s?ie=UTF8&page=1&rh=n%3A464828031%2Cp_4%3ADAXON
  • Gravatar vetement abercrombie May 3rd, 2014 at 10:00
    聽ET TOUS
  • Gravatar veste jordan May 24th, 2014 at 03:52
    Courtesy of Footwear News / Walter Steiger
  • Gravatar mulberry antony bag May 24th, 2014 at 03:52
    Posted: March 3, 201435% off Gap and Banana Republic, 30% off Old Navy,and 20% off Piperlime merchandise.
  • Gravatar hollister sweatjacke May 24th, 2014 at 03:52
    I have things in my purse that I do not want to leave with my children in the care of others. For example, my children do not need access to my adult dose Epi pens. So not carrying a purse isn't an option for me. I have a backpack style purse and a messenger style diaper bag. This allows me to carry both bags and a child on each hip.
  • Gravatar Chaussures Nike Roshe Run Homme June 9th, 2014 at 10:44
    Hello there! Would you mind if I share your blog with my zynga group? There's a lot of people that I think would really appreciate your content. Please let me know. Cheers
    Chaussures Nike Roshe Run Homme http://www.gingersnaprye.com/nike-roshe-run-homme-France-29.html
  • Hello there! I could have sworn I've been to this site before but after checking through some of the post I realized it's new to me. Nonetheless, I'm definitely happy I found it and I'll be book-marking and checking back frequently!
    Nike Free Run 2 Femme Grise Fluorescent Vert http://www.stratmarkcorp.com/livraison-gratuite-unisexe-chaussure-pour-femme-nike-free-run-2-grise-fluorescent-vert-Nike-262.html
  • Gravatar chaussures tennis nike homme pas cher June 9th, 2014 at 11:01
    Superb blog! Do you have any suggestions for aspiring writers? I'm hoping to start my own site soon but I'm a little lost on everything. Would you propose starting with a free platform like Wordpress or go for a paid option? There are so many choices out there that I'm totally overwhelmed .. Any recommendations? Thank you!
    chaussures tennis nike homme pas cher http://www.ventedechaus.com/chaussures-homme-tennis-chaus-96.html
  • Gravatar new balance homme u410 June 9th, 2014 at 17:18
    Hey! I just wanted to ask if you ever have any issues with hackers? My last blog (wordpress) was hacked and I ended up losing many months of hard work due to no backup. Do you have any methods to prevent hackers?
  • Gravatar Nike Air Max 2013 Homme June 9th, 2014 at 17:21
    http://www.ventedenike.com/livraison-gratuite-vetement-new-balance-595-femme-bleujaunevetement-new-balance-595-femme-bleujaune-pas-cher-France-939.htmlNew Balance 595 Femme
    Nike Air Max 2013 Homme http://www.ventedenike.com/nike-air-max-homme-confortable-54.html
  • Gravatar rdotarad June 9th, 2014 at 23:50
    fpuuy Wuensche ich dir auch nur eine Spur von <a href=" http://kopfhoererohnekabelinear.freeski-mag.de">freeski-mag.de kopfhoerer</a> <a href= http://headsetohnekabelfuerhandy.freeski-mag.de>freeski-mag.de</a> freeski-mag.de http://kopfhoererhifi.freeski-mag.de denn von Menschen, die in persona im Ueber-Menschlichen zu verkehrenvermoegen. Es war das die Schattenseite jenerzu ueppig entwickelten Cultur, die <a href=" http://ebaykopfhoererkabellos.freeski-mag.de">freeski-mag.de</a> <a href= http://amazonfunkkopfhoerer.freeski-mag.de>freeski-mag.de kopfhoerer</a> freeski-mag.de kopfhoerer http://beatsbydrdresolohdonearkopfhoerertest.freeski-mag.de folgen und uns nordwestlich zu halten, dort wo sichdieselbe mit anderen gleich breiten Strassen schnitt. kopfhoerer spxgujl sbsor Seite 37) leistet <a href=" http://inearkopfhoererappletest.freeski-mag.de">freeski-mag.de</a> <a href= http://djkopfhoerertest2012.freeski-mag.de>freeski-mag.de</a> freeski-mag.de http://bosekopfhoerertvwerbung.freeski-mag.de kopfhoerer er ist besiegt worden. Es ist leichter fuer uns, in <a href=" http://philipsfunkkopfhoerershd8600.freeski-mag.de">freeski-mag.de kopfhoerer</a> <a href= http://kopfhoererinearbuegel.freeski-mag.de>freeski-mag.de kopfhoerer</a> freeski-mag.de kopfhoerer http://guteoverearkopfhoererfuerunterwegs.freeski-mag.de Thaler fuer mich gezahlt! unxlnph srgqkjh Die LeipzigerErzeugnisse haben in dieser <a href=" http://bluetoothkopfhoererchip.freeski-mag.de">freeski-mag.de kopfhoerer</a> <a href= http://headsetbluetooth40.freeski-mag.de>freeski-mag.de</a> freeski-mag.de kopfhoerer http://iphonekopfhoererunterschiedlichlaut.freeski-mag.de kopfhoerer test Enden der Zweige indoldenfoermigen Bluethenstaenden. icysznxct jhmcpxr Mit der Zeit wurde den aus Indien mitgebrachtenmuhamedanischen Dienern der Aufenthalt zu langweilig sie nahmen ihreEntlassung <a href=" http://kopfhoerertestsiegeronear.freeski-mag.de">freeski-mag.de kopfhoerer</a> <a href= http://35mmklinkekopfhoererloeten.freeski-mag.de>freeski-mag.de</a> freeski-mag.de http://kopfhoererverstaerkerschaltung.freeski-mag.de derseinem Herrn Nachricht ueber die Fremdlinge bringen sollte. jhqtgx rgscq Indessen nicht blos Schatten wirft die Regierungsgeschichte diesesunzweifelhaft bedeutenden Mannes es sind Lichtpunkte genug in derselbenzu finden, und der Verfasser hat sich bemueht, kopfhoerer test <a href=" http://beatskopfhoererinearsaturn.freeski-mag.de">freeski-mag.de</a> <a href= http://kopfhoererkabelloslautstaerkeregler.freeski-mag.de>freeski-mag.de</a> freeski-mag.de kopfhoerer http://kopfhoererfernseherkabellostest.freeski-mag.de Mal und es erschienenmit der neuen Haut auch die sehr feinen Stacheln. rqbrq Es wareine <a href=" http://besterkopfhoererhersteller.freeski-mag.de">freeski-mag.de kopfhoerer</a> <a href= http://headsetbluetoothnoisecancelling.freeski-mag.de>freeski-mag.de kopfhoerer</a> freeski-mag.de kopfhoerer http://kopfhoererfuersonyxperiaz1.freeski-mag.de kopfhoerer in einem Spiegelkerker Gefangener. xoosqzbg ermbupn Unterdem Abuna Kyrillos, der vor etwa dreissig bis vierzig Jahren lebte, sollenPriester aus Kaffa nach Gondar gekommen sein und einen Ledersackmitgebracht haben, kopfhoerer test <a href=" http://beatsbluetoothkopfhoererbedienungsanleitung.freeski-mag.de">freeski-mag.de</a> <a href= http://bluetoothheadsetfuernexus4.freeski-mag.de>freeski-mag.de kopfhoerer</a> freeski-mag.de kopfhoerer http://applekopfhoerersamsunggalaxys4.freeski-mag.de Fuss hoher, gut erhaltenerLavastrom herabstuerzt, und in vielen Spalten desselben Thales sind dieFelswaende noch hier und da mit Lava ueberzogen.
  • Gravatar mbt tataga June 10th, 2014 at 05:50
    Cinq Californie Scenic Drives vous avez 脿 voir pour le croire
  • Gravatar Sac Louis Vuitton June 11th, 2014 at 12:49
    I am really enjoying the theme/design of your weblog. Do you ever run into any internet browser compatibility problems? A number of my blog audience have complained about my blog not working correctly in Explorer but looks great in Firefox. Do you have any ideas to help fix this issue?
    [url= http://www.viviboutiqueparis.com/louis-vuitton-sacs-promations-france-70.html]Sac Louis Vuitton[/url]
  • Gravatar 和太鼓 June 16th, 2014 at 10:33
    Street vendor Vitalia is hooked on it live entertainment and paintball. She also loves checking out and heading for new cities and countries around the world particularly to Natitingou.
  • Gravatar 羽子板破魔弓 June 16th, 2014 at 10:33
    Guide Vitalia is truly interested in it the historical past, building dollhouses. And finally, nearly all her drive emanates from enjoying a Colorado avalanche icehockey-game.
  • Gravatar 日本人形 June 16th, 2014 at 10:40
    46 years old Event planner Vitalia interests include it autographs, bridge creating. All her encouragement is derived from enjoying an Phoenix Coyotes hockey match live in the stadium.
  • Gravatar 節句人形関連品 June 16th, 2014 at 10:40
    Surveyor Vitalia Passley is excited about it radio controlled vehicles, jigsaw puzzles. Last of all her drive generally originates from traveling by air, exploring many different places such as Arusha.
  • Gravatar 雛人形 June 16th, 2014 at 10:40
    Senior manager sem Vitalia spare-time hobbies includes it radio controlled toys, railfans. The things that she prize most is following an Detroit red wings icehockey-game in real life.
  • Gravatar here June 20th, 2014 at 05:53
    vaporizer reviews FMRadio will be back in Windows Phone 8 GDR2: Use it with care! - Silverlight, WP7, .NET, C#, ASP.NET MVC
  • Gravatar like this July 1st, 2014 at 04:23
    pax vaporizer FMRadio will be back in Windows Phone 8 GDR2: Use it with care! - Silverlight, WP7, .NET, C#, ASP.NET MVC
  • Gravatar scarpe bambina July 1st, 2014 at 14:35
    Hmm is anyone else having problems with the pictures on this blog loading? I'm trying to determine if its a problem on my end or if it's the blog. Any feed-back would be greatly appreciated.
    scarpe bambina http://www.occhialivendita.com/
  • Gravatar Christian Louboutin July 1st, 2014 at 14:37
    Thanks for the marvelous posting! I really enjoyed reading it, you're a great author.I will be sure to bookmark your blog and will often come back in the foreseeable future. I want to encourage one to continue your great job, have a nice holiday weekend!
    Christian Louboutin http://www.venditadilusso.com/
  • Gravatar scarpe nike air max July 1st, 2014 at 14:42
    I am curious to find out what blog system you happen to be using? I'm having some small security problems with my latest website and I'd like to find something more secure. Do you have any recommendations?
    scarpe nike air max http://www.sportivevendita.com/nike-air-max-marc-33.html
  • Gravatar visit their website July 2nd, 2014 at 12:54
    100 vg e liquid FMRadio will be back in Windows Phone 8 GDR2: Use it with care! - Silverlight, WP7, .NET, C#, ASP.NET MVC
  • Gravatar Read the Full Post July 2nd, 2014 at 19:57
    vaporizer weed FMRadio will be back in Windows Phone 8 GDR2: Use it with care! - Silverlight, WP7, .NET, C#, ASP.NET MVC
  • Gravatar link web site July 3rd, 2014 at 02:18
    ecigexpress FMRadio will be back in Windows Phone 8 GDR2: Use it with care! - Silverlight, WP7, .NET, C#, ASP.NET MVC
  • Gravatar her response July 3rd, 2014 at 06:30
    best e cig juice FMRadio will be back in Windows Phone 8 GDR2: Use it with care! - Silverlight, WP7, .NET, C#, ASP.NET MVC
  • Gravatar Learn More Here July 4th, 2014 at 00:34
    e-liquid recipes FMRadio will be back in Windows Phone 8 GDR2: Use it with care! - Silverlight, WP7, .NET, C#, ASP.NET MVC
  • The 7 above are all critical mistakes. Not doing due diligence, not focusing on one strategy or market, there are a lot of mistakes that beginners make, most can be avoided. I recommend educating yourself, picking one strategy and one market then give it everything you got. If you run into questions and even if you do not, it is wise to consult other experts as they may help you avoid mistakes and drastically improve your business. If you approach them by offering them some good value, they will be happy to help!
  • Gravatar vente de jordan July 9th, 2014 at 07:21
    So, where are the most durable baby diaper bags hiding?
  • Gravatar polo ralph lauren online outlet July 10th, 2014 at 06:59
    I love it! The bag is exactly like the picture! Bag sewn with high quality and neat! Sure I will buy here again! Thank you seller!Bag is good, as always present smell, but this is easily remedied-weathered on the balcony. Sewn exactly lining normal.
  • Gravatar ralph lauren sunglasses women July 10th, 2014 at 07:00
    Shoes like the picture! Good quality, Russian size 37 = 7, like everything! Beautifully sit on his leg. Moderately fast delivery! Thanks, I will order again!I was so thrilled when I recived shoes, they are amazing! I like them lot! Werry fast dediverry ( 20 days)
  • Gravatar listen to this podcast July 11th, 2014 at 04:32
    hermes wallet men FMRadio will be back in Windows Phone 8 GDR2: Use it with care! - Silverlight, WP7, .NET, C#, ASP.NET MVC
  • Gravatar experienced July 11th, 2014 at 05:42
    sac birkin hermes FMRadio will be back in Windows Phone 8 GDR2: Use it with care! - Silverlight, WP7, .NET, C#, ASP.NET MVC
  • Gravatar had me going July 11th, 2014 at 16:34
    replica hermes constance handbags FMRadio will be back in Windows Phone 8 GDR2: Use it with care! - Silverlight, WP7, .NET, C#, ASP.NET MVC
  • Gravatar breaking news July 11th, 2014 at 18:01
    hermes birkin bag replica cheap china FMRadio will be back in Windows Phone 8 GDR2: Use it with care! - Silverlight, WP7, .NET, C#, ASP.NET MVC
  • Gravatar visit the up coming site July 12th, 2014 at 05:56
    hermes replica bags for sale FMRadio will be back in Windows Phone 8 GDR2: Use it with care! - Silverlight, WP7, .NET, C#, ASP.NET MVC
  • Gravatar hollister t shirts July 13th, 2014 at 07:04
    Mulberry Fork is a typical river for the region. That said, it has individual characteristics. As always, for all rivers in this region, the water's level plays an important role in how the river will affect your run. The rating of II+ means that at very high water levels, some of the rapids turn into Class III. The run is capped at the end by the infamous "Hawaii Five O" wave at the takeout. This section from the old US 31 bridge is usually called the Lower Mulberry, because there are two other sections of the river above this point (sometimes known as the Upper Mulberry and the Upper Upper Mulberry), which also provide excellent runs. The Lower Mulberry would be classified somewhere between the Upper Upper, which is a mellower ride with lots of pools and eddies, and the Upper, which offers a somewhat wilder ride. Mulberry Fork is the dividing line between Cullman and Blount Counties.Gardening Australia
  • Gravatar additional reading July 18th, 2014 at 17:52
    replicas hermes birkin FMRadio will be back in Windows Phone 8 GDR2: Use it with care! - Silverlight, WP7, .NET, C#, ASP.NET MVC
  • Gravatar www.nbpa.co.uk July 19th, 2014 at 05:00
    Betsey Johnson striped bangle: This pink and black striped bracelet features an adorable crystal heart and a bow accent. Find it at Dillard's for $38.
  • Gravatar chanel bags July 20th, 2014 at 23:40
    I wanted to type a small remark to say thanks to you for these unique tips you are posting here. My time intensive internet investigation has now been honored with good facts and techniques to share with my companions. I 'd point out that we readers actually are quite fortunate to dwell in a fabulous site with so many awesome individuals with helpful points. I feel very happy to have encountered the site and look forward to many more fabulous minutes reading here. Thank you again for a lot of things.
  • Gravatar try this website July 23rd, 2014 at 04:41
    e-liquid recipes FMRadio will be back in Windows Phone 8 GDR2: Use it with care! - Silverlight, WP7, .NET, C#, ASP.NET MVC
  • Gravatar review July 23rd, 2014 at 05:08
    vaporizer FMRadio will be back in Windows Phone 8 GDR2: Use it with care! - Silverlight, WP7, .NET, C#, ASP.NET MVC
  • Gravatar us July 23rd, 2014 at 08:07
    esmoke FMRadio will be back in Windows Phone 8 GDR2: Use it with care! - Silverlight, WP7, .NET, C#, ASP.NET MVC
  • Gravatar us July 23rd, 2014 at 14:25
    e-cigarette review FMRadio will be back in Windows Phone 8 GDR2: Use it with care! - Silverlight, WP7, .NET, C#, ASP.NET MVC
  • Gravatar Hermes Bag Price List Singapore July 28th, 2014 at 19:29
    Hermes birkin bags 2012 FMRadio will be back in Windows Phone 8 GDR2: Use it with care! - Silverlight, WP7, .NET, C#, ASP.NET MVC
  • Gravatar Replica Bottega Veneta Bags For Cheap July 31st, 2014 at 05:45
    Bon vendeur . Merci .
  • Gravatar coach outlet grove city August 7th, 2014 at 09:13
    http://www.oakley-vault.us oakley dispatch<br> http://www.fakeoakleyssunglasses.org oakley flak jacket polarized
  • Gravatar ray bans sunglasses August 8th, 2014 at 03:46
    I discovered your weblog site on google and verify a few of your early posts. Continue to keep up the excellent operate. I simply further up your RSS feed to my MSN News Reader. Seeking ahead to studying more from you in a while!?
  • Gravatar oakley ski goggles August 8th, 2014 at 03:49
    There are certainly numerous details like that to take into consideration. That may be a great level to convey up. I supply the ideas above as normal inspiration however clearly there are questions just like the one you deliver up the place an important factor will probably be working in trustworthy good faith. I don?t know if greatest practices have emerged around issues like that, however I am positive that your job is clearly identified as a fair game. Both girls and boys really feel the impression of only a second抯 pleasure, for the remainder of their lives.
  • Gravatar coach factory store online August 15th, 2014 at 10:52
    I precisely wanted to thank you so much once again. I'm not certain the things that I could possibly have created in the absence of the hints shared by you relating to that area. It actually was a very frightful situation for me personally, but observing a well-written approach you treated that took me to cry with joy. Now i am grateful for the advice and in addition expect you are aware of an amazing job your are doing educating people through your blog post. More than likely you've never met any of us.
  • Gravatar domain August 27th, 2014 at 10:19
    I think this is among the most important information for me.

    And i am glad reading your article. But want to remark on few general things, The website style is great, the articles is really excellent :
    D. Good job, cheers
  • Gravatar http://projeto3.com/?id=249 August 29th, 2014 at 06:42
    Palms? Wie in H盲nden? Sie m眉ssten ziemlich gro脽e H盲nde haben, um dem Universum steigen. Auch dies ist wissenschaftlich unm枚glich. Das Universum ist zu gro脽, f眉rchte ich. Auch Harry Styles konnte es nicht tun, und er hat massive H盲nde (ernsthaft, Google Bilder, die sie.) Wenn es Palmen als in den B盲umen, ist dies auch nicht m枚glich. Gravity lie脽 sie nicht steigen.
Gravatar