Learn about Windows Phone7 Development (14. A Phone Task)

Source: Internet
Author: User

The previous development experience with SMS, Phone, Email, camera, etc. on Windows Mobile has been invalidated because WP7 does not provide the APIs to directly manipulate these. But this does not mean that it cannot be done, because in WP7 it is possible to invoke the task of the system through tasks, that is, to open the relevant application of the system to make calls, send text messages, save contacts, take photos, and so on.

In addition, because it is called the application of the system, that is, in their own programs to open another program, because the WP7 system is a single task system, so when the task is started, the application will be terminated.

If you are in debug, you can continue debugging by pressing F5, and in the application, because the program already has a Tombstone, the calling task does not need to be invoked again, but the associated state needs to be maintained by itself.

A. Phone task: A task that is used to open the Dial-up interface in an application. You can make a direct call, and you can set the name of the contact and the number of calls you dialed.

PhoneCallTask phonecall = new PhoneCallTask();
phonecall.DisplayName = "小镇";
      phonecall.PhoneNumber = "13567890000";
     phonecall.Show();

Two. SMS Task: You can open the system SMS program, and set the message content and send the sender, you can send MMS, but it looks as if you can only send pictures, do not know whether the real machine can send sound files and other documents.

SmsComposeTask sms = new SmsComposeTask();
sms.Body = "Test sms";
    sms.To = "13567890000";
    sms.Show();

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.