Error in background audio playback after publishing app. RRS feed

  • Question

  • The app (stream radio) after certification and publishing doesn't correctly working. If it installed from Store and pressed play button, it down (in version 1.2). I modified XAP to version 1.3 and sent app for certification again, but Dev Center wrote me "The certification of app completed with errors".

    Certification Test Results (Fail):
    "The app must handle exceptions raised by the any of the managed or native System API and not close unexpectedly. During the certification process, the app is monitored for unexpected closure. An app that closes unexpectedly fails certification. The app must continue to run and remain responsive to user input after the exception is handled.<...>
    Expected Result
    1. Launch your app.
    2. Navigate throughout the app, and then close the app.
    3. Verify that unexpected behavior does not occur during the closing process.
    4. Verify that the app remains responsive to user input and user interaction following an app error.
    The application terminates unexpectedly in response to user input. Steps to Reproduce:
    1. Launch the application.
    2. Select the play button.
    3. Notice the application unexpectedly terminates."

    But when I am testing XAP before certification and publishing (v1.2 and v1.3) in Nokia Lumia 800 and Emulator 7.1, the app not terminates. Background audio playback working correctly.

    What is the problem?
    Here is a piece of code, after which probably the error occurs:

    if (BackgroundAudioPlayer.Instance.PlayerState == PlayState.Playing)
                    AudioTrack audioTrack = new AudioTrack(
                    new Uri("http://fm.kiwi.kz/dfm",UriKind.Absolute),
                    "DFM - 96 kbps",
                    BackgroundAudioPlayer.Instance.Track = audioTrack;

    Saturday, June 15, 2013 7:58 AM

All replies