Question

I would like to know if it was possible in VB.NET for WP8, when the user clicks on the back key of the phone, to go to the main menu (home with the tiles) without really quiting the app (because it has to stay in the multitask "as is") Thank you.

Was it helpful?

Solution

Why do you want to do that? The user expect that he closed the app permanently.

There is no way to do this behavior.

You also need to understand these points:

  • When you press the start key or launch another app:

    If your app is in the foreground and the user launches another app or presses the Start button to return to the home screen your app is suspended in memory. When the user returns to your app by pressing the back button or by selecting it from the task switcher, your app is resumed.If the device needs to free up memory to make sure that the foreground app is responsive, suspended apps are terminated and info about the state of the terminated apps are saved

  • If you need to do multitasking then choose the appropriate Background agent for you scenario.

    Only one app runs at a time on Windows Phone, but background agents provide a way for your app to perform tasks, even while it’s not running in the foreground. There are several different types of agents that are provided to enable specific phone features, but the two general purpose agents are the periodic agent and the resource-intensive agent.

    For more info, see Background agents Here

  • Background transfers

    If you would like your app to be able to download files in the background but the app doesn’t need to execute any code as you would with a background agent, consider using the background transfer feature.

    For more info, see background transfers, Here

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top