Windows Phone mango tips (1)

Source: Internet
Author: User

1. in mango, the following starters and selectors are added: Address chooser task, Bing Maps task, Bing Maps directions task, game invite task, save contact task, save ringtone task, share link task, and share status. task

2. scheduled tasks and background proxies allow applicationsProgramIt can be executed in the backgroundCode, Even this application is not running on the foreground. Scheduled tasks can be classified into periodictask and resourceintensivetask. An application can have at most one background proxy.

3. The periodic proxy and resource-intensive proxy cannot consume more than 6 MB of memory while the audio proxy is limited to 15 MB. Once the memory limit is exceeded, these proxies will be terminated immediately.

4. Determine whether the current application is running on a real machine or a simulator.

 
If(Microsoft. devices. environment. devicetype=Microsoft. devices. devicetype. Device ){//Do something}

5. In mango, the button comes with command and commandparameter. You do not need to use eventtocommand or additional commands.

6. we can use shelltileschedule to regularly modify the pin to the start tile, but there is a limit that remoteimageuri can only be a remote image, not a local image, and the image size cannot exceed 80 KB, download time cannot exceed 30 seconds

7. In the screen lock status, shelltileschedule will not be executed.

8. You can use devicestatus. iskeyboarddeployed to determine whether the current device has a physical keyboard. Use devicestatus. iskeyboardpresent to determine whether the physical keyboard is on.

9. In background agents (background proxy), Some APIs are not supported, such as MessageBox, so do not try to use MessageBox in background agents, but we can use shelltoast to bring up a reminder. The specific unsupported APIs references http://msdn.microsoft.com/en-us/library/hh202962 (V = vs.92). aspx

10. geocoordinatewatcher: class used to obtain the current geographical location. The cached geographical location is used. The system clears the geographical cache every 15 minutes.

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.