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

Pregunta

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?

¿Fue útil?

Solución

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

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top