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

StackOverflow https://stackoverflow.com/questions/11928186

Question

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?

Was it helpful?

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

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