Search code examples
windows-phone-7windows-phone-7.1tombstoning

Which approach is better? "Tombstoning the app and reloading the data on resume" or 'Running under lock screen/background"


I am currently working on an application which requires fetching of data from the net. But if the user presses the start button or starts any other application, the data fetching process in my application is interrupted and the app throws exceptions like WebException.

In-order to prevent this I have forced the app to work under background even if user deactivates it. Is this a bad approach and will the tomb-stoning the app and resuming the state from state dictionary approach be a better one?


Solution

  • If you're downloading larger amounts of data, you may be better off using the BackgroundTransferService -it is covered in the second lesson of the Windows Phone Training Kit