This lab is based on the Tidy application. The Tidy application allows the user to manage projects containing tasks with each task having a potential due date. The user is to backup and restore the application’s database from Settings screen. We begin the lab with a copy of the application from which all backup-restore capabilities have been removed. This version can be found in the lab installation folder under Source\Begin. After performing the lab you should end up with a version that is functionally identical to the one contained in Source\End.
Task 1 – Adding Background Transfer Support
While the Windows® Phone Mango API for working with BackgroundTransferService is not complex, it can still be cumbersome in the Tidy application’s context. In this task we add a class which handles the Upload/Download tasks for the application. These methods will demonstrate how to use the new Microsoft.Phone.BackgroundTransfer.BackgroundTransferRequest and Microsoft.Phone.BackgroundTransfer.BackgroundTransferService class in order to perform backup and restore.
Task 2 – Wiring Database Backup/Restore to the User Interface
In the previous task, we have laid the groundwork for downloading and uploading the database file, which serves as a base for the database backup/restore. In this task, we will alter the application’s interface to enable backing up and restoring the database.