Fix for failed certification: Non Music + Videos Hub Applications That Play Media

Oh this one seemed really hard, and I haven’t got the feedback from this failed certification report: Non Music + Videos Hub Applications That Play Media. 

Here is my recommended fix:

Add a messagebox using Ok/Cancel, with the question: “If you want to listen to the music that is playing click ok or if you want to use the game’s background music click cancel”, then test for the user selection.  You could use the initial page or other process, but the messagebox.show is a simple consistent approach to the matter. 

Code Snippet

  1. protected override void OnNavigatedTo(System.Windows.Navigation.NavigationEventArgs e)
  2. {
  3.    
  4.    if (MessageBoxResult.OK == MessageBox.Show("Play game tune, select Ok, to play Zune Tune, select Cancel",
  5.        "Hey You!", MessageBoxButton.OKCancel))
  6.    {
  7.        _bplaymusic = true;
  8.    }
  9.    else
  10.    {
  11.        _bplaymusic = false;
  12.    }
  13. }

If this doesn’t' work, let me know.  It appears to work, but one never knows.  Comments about this are appreciated.