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 ~