Device Development [WP7 learning Note 5]

Source: Internet
Author: User

This article describes how to develop devices. The content is as follows:

1. Get device information: In the namespace Microsoft. Phone. info, this namespace is used for retrievalDevice informationAndUser-related anonymous identifiers.

The namespace consists of the following:

The following code gets the name of the current device (simulator.

Private void button4_click (Object sender, routedeventargs E)
{
// This capability is required: <capability name = "id_cap_identity_device"/>
This. pagetitle. Text = deviceextendedproperties. getvalue ("devicename"). tostring ();
}

Pay attention to the related capabilities (Capability).

2. Obtain the data of the gravity acceleration sensor.

3. Retrieve location data

4. FM radio

Note ThisSingle InstanceYou can ~

5. Vibrator

6. Reactive Extension Reactive framework programming is complicated and needs to be described in a separate chapter ~

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.