My record series: (1.3) Windows Phone 7 Application events

Source: Internet
Author: User

Application_launching

Occurrence time
Click and start an application from the list of installed applications. An application instance is created.

Action
Do not read configuration information from independent storage, which will reduce the loading speed;
Do not try to recover temporary State data (memory variables );
When an application is started, it is always displayed as a new instance. (Not the last operation)

application_activated
occurrence time
trigger this two conditions must be met simultaneously:
1. when the user uses launcher, chooser, or starts another application, the user leaves the current application.
2. After the launcher or chooser operation is complete, return to the application or back button to return to the application.
this event is not activated when the application is started for the first time.
action
the application should allow users to continue operations as they have never left the application.
temporary data should be recovered, however, you should not try to read data from the independent storage to avoid the possibility of slow running.

Application_deactivated
Occurrence time
The user uses launcher, chooser, or starts another application, leading to the departure of the current application.
But this event will notProgramOccurred when closing
Action
All temporary states (such as session information of the current application) should be saved to state dictionary; all persistent information should be saved to independent storage.
The event can be executed for up to 10 seconds. If the event fails to be executed in more than 10 seconds, the program will be closed rather than entering the tombstone.

Application_closing
Occurrence time
Use the back button to exit the first page of the application
Action
Save all persistent information to independent storage


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.