Return the application to the previous page

Hi there,
my game for Windows Phone 8 has not been certified for this reason:

5.2 Technical Performance and Resource Management
5.2.4.1
requirements
Pressing the Back button must return the application to the previous page or return to any previous page Within the back stack.
Expected Result Test Process Required : 1st Launch the application . Second Navigate through the application . 3rd Press the Back button. 4th Verify That the application closes the screen That is in focus and returns you to a previous page Within the back stack.
Comments : Result : Fail Pressing the device back button has no effect on the application .
Steps to Reproduce: 1st Launch the application .
Second Select " Play" .
3rd Select " New Game" .
4th Select " Yes".
5th Press the Back button device . 6th Observe the application does not respond .

The problem is that the game after pressing YES button begin load next level. How to return to the previous screen during loading? I am trying Application.LoadLevelAsync and async.allowSceneActivation = false; seems that Async Operation must be completed, otherwise the application crashes.
Does anyone have any idea? Thank you.

Hi,

LoadLevelAsync must complete indeed. Are you sure it failed because of not responding during the loading screen? Does it work correctly after the level has loaded?

Yes, it works correctly after the level has been loaded.
Is there another way how can I cancel loading of the next scene and than return to the previous page? Or the only option is use LoadLevelAsync and detect if the player push the back button, after that finish LoadLevelAsync and then load the first scene?

I suppose that is the only way. You cannot really cancel LoadLevelAsync.

What you could do, however, is:

  • Ask the user whether he really wants to cancel;
  • If he presses yes, display “Canceling…” text on the screen and when the level is loaded, instantly go back to the last page.