If you’re like me, submitting apps to the AppHub for certification is like watching a pot of water boil. I just sit there and wait….and wait….and wait….and then BANG, FAIL! I have had an application fail for the second time due to media interaction with the phone. Now granted, I’ll give Microsoft some credit here, they are trying to protect the user experience. However, I’m developing my applications to comply with the requirements listed here and they are inconsistent.
My latest failure for certification on the AppHub was requirement 6.4.1 which is related to an app being in the Music + Videos Hub: “The application functionality must be related to video and/or music media playback.” The problem is I don’t want my app to be in the Music + Videos Hub, but it got assigned there by default.
Why was my app assigned to the Music + Videos Hub? To figure this out I had to go into the 6.4 section overview which states: “When an application calls the MediaHistory or MediaHistoryItem classes, it is considered to be a Music + Videos Hub application…” Now in my application I do NOT even call those classes! However, I noticed those classes belonged to Microsoft.Devices namespace and I had a couple calls to the Microsoft.Devices.Radio class within that namespace. So I decided to try an experiment and remove those calls to the Radio class and ALL the Microsoft.Devices references in my code.
Bingo! It worked! The AppHub no longer shows Music + Videos Hub when I upload my XAP file!




