In-depth study of Windows phone7 Development (IV. Tombstone)

Source: Internet
Author: User

The following executable modes are available for phone7 : tombstoning , page state , application state , persistent data , transient state . tombstone and transient state because they can simulate multiple tasks. In tombstoned mode, the application is terminated by the operating system (this can reduce resource usage), you need to save the transient state , it is used to restore the original state of the application after the application is revived. For tombstone mode, mainly reflected in the application lifecycle .

the lifecycle includes launching , running , closing , deactivating , activating these five running states. deactivating , activating is the running state under tombstone . You can add Code in these two running states to complete the wake-up status or data transfer. In beta , both use and display are quite troublesome, but in the official version, the running result is clearly displayed.

Before callingTaskGenerally, the currentProgramExit and startTask, And then exitTaskAnd then send the corresponding information back to the program.TombstoneTo achieveTaskBut data transmission requires self-programmed implementation. To obtainEmail AddressFor exampleTombstone.

 

Sample Code: http://www.daisy123.com /? Page_id = 275 tombstone.zip

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.