Devices for locating and moving



A Windows Phone device can determine its location. It includes a global positioning system (GPS) device that receives satellite signals to determine the location of the phone. Since GPS works well only in open space, the phones also use other methods of positioning (A-GPS): information about the location of the nearest cell tower and / or the location of the Wi-Fi access point in use. A-GPS methods help to determine the location when staying in buildings and enclosed areas.

The Windows Phone operating system provides methods that programs can use to locate the device. The development environment contains a GPS emulator in order to check how programs use location information.

Accelerometer is a hardware device for measuring acceleration. The accelerometer measures the acceleration, which is the physical quantity denoting the change in speed. Also, the accelerometer reacts to the change in gravity. Programs can get the value of a vector in a three-dimensional space, which determines the position of the phone relative to the ground. The accelerometer can also detect sharp movements of the phone, which can be used to control games.

The phone also contains an electronic compass, through which the program can determine in which direction the phone points. This can be useful for creating "extended reality" applications.

A mechanical gyro is a device that always points in a certain direction. Windows Phone contains its electronic version, which allows you to determine when the phone is moved or rotated in different directions. Programs can use an accelerometer to determine the position of the phone in space, but the gyroscope provides much more accurate information and can also provide information about the speed of movement or rotation.

When a program uses many sensors it is difficult to check how programs respond to a certain sequence of movements and actions. Fortunately, Windows Phone provides a single software object that combines information from various sensors and gives programs the ability to determine the orientation and movement of the phone. You can create your own sequence of actions that you can play in the Windows Phone emulator while testing the program.

Hardware buttons

All Windows Phone programs use the standard user interface. The design of the phone provides several hardware buttons that must be in each device and must perform the same function regardless of the design and model of the phone.

Start - allows you to start the execution of a new action. Clicking on the Start button opens a window with a list of programs in which you can select and run the installed program. At the same time, the running application suspends its work. The operating system Windows Phone "remembers" which application was stopped, so you can return to it later.

Back - allows you to return to the previous page of the application. It is also used to stop the application and return to the previously running application. For example, you can start the application to send an email while browsing the web site, and after sending the message, click the Back button to return to the browser. Within the application to work with the mail when you click the Back button, you go to its previous screen. Once the message is sent, you can click the Back button while on the main screen of the email program to return to the program list screen and start another program. The Back button is also used to display the list of applications running on the phone. If you press and hold it ("long press"), the phone will open a list of all active applications, between which you can switch.

Lock - allows you to lock the phone and turn off the screen to conserve battery power. When the user clicks the Lock button or the Start button again, the phone displays the lock screen. The phone can be set to automatically lock after a few minutes of inactivity. The application may be allowed to continue working when the device is locked. This is useful in applications for navigation, in which the program should remain active, but affects the battery life of the phone.

Search - allows you to start a new search. The actions when you click the Search button depend on what the user is doing at this time. If you click the Search button while you browse the web page, it will open the web search menu. If you click the Search button, when the Contacts application is active, contacts will be searched.

Camera - launches the Camera application in which you can take a photo. At the same time, the program running at this time stops.

The way these buttons are used is important for programs. The program must take into account that it can be unloaded from memory at any time. For example, if a user decides to take a photo while playing the game, the game will be paused and can be deleted from memory. After the user takes a picture, the user should be able to resume the game.

Programs that must be stopped receive a warning message, and the Windows Phone operating system provides several ways to store status information.

Not all Windows Phone devices have a hardware keyboard for text input, but all devices can use a touch screen for this.

Memory and storage

It is believed that the more memory in the computer, the better it works. There are two types of memory: operational and internal memory. RAM (RAM) is the space in the computer where the programs run. Internal memory is used to store programs and data in the device.

In a desktop computer, the memory is expressed by the amount of RAM (Random Access Memory) and the amount of space on the hard disk. In a modern desktop computer, an average of 2 GB of RAM and 500 GB of space on the hard drive. It can be considered that a compressed music track uses about 6 MB, a high-quality image is about 3 MB, and one hour of good quality video will take about 1 GB.

 

The minimum requirement for Windows Phone devices is 256 MB of operative and 8 GB of internal memory, which corresponds to one eighth of the amount of RAM and about one-fiftieth of the memory for storing data compared to a desktop computer. The operating system Windows Phone is optimized for working with a small amount of memory. However, when creating programs, you need to be sure that the programs do not exhaust the available resources. Hardware buttons

All Windows Phone programs use the standard user interface. The design of the phone provides several hardware buttons that must be in each device and must perform the same function regardless of the design and model of the phone.

Start - allows you to start the execution of a new action. Clicking on the Start button opens a window with a list of programs in which you can select and run the installed program. At the same time, the running application suspends its work. The operating system Windows Phone "remembers" which application was stopped, so you can return to it later.

Back - allows you to return to the previous page of the application. It is also used to stop the application and return to the previously running application. For example, you can start the application to send an email while browsing the web site, and after sending the message, click the Back button to return to the browser. Within the application to work with the mail when you click the Back button, you go to its previous screen. Once the message is sent, you can click the Back button while on the main screen of the email program to return to the program list screen and start another program. The Back button is also used to display the list of applications running on the phone. If you press and hold it ("long press"), the phone will open a list of all active applications, between which you can switch.

Lock - allows you to lock the phone and turn off the screen to conserve battery power. When the user clicks the Lock button or the Start button again, the phone displays the lock screen. The phone can be set to automatically lock after a few minutes of inactivity. The application may be allowed to continue working when the device is locked. This is useful in applications for navigation, in which the program should remain active, but affects the battery life of the phone.

Search - allows you to start a new search. The actions when you click the Search button depend on what the user is doing at this time. If you click the Search button while you browse the web page, it will open the web search menu. If you click the Search button, when the Contacts application is active, contacts will be searched.

Camera - launches the Camera application in which you can take a photo. At the same time, the program running at this time stops.

The way these buttons are used is important for programs. The program must take into account that it can be unloaded from memory at any time. For example, if a user decides to take a photo while playing the game, the game will be paused and can be deleted from memory. After the user takes a picture, the user should be able to resume the game.

Programs that must be stopped receive a warning message, and the Windows Phone operating system provides several ways to store status information.

Not all Windows Phone devices have a hardware keyboard for text input, but all devices can use a touch screen for this.

The minimum requirement for Windows Phone devices is 256 MB of operative and 8 GB of internal memory, which corresponds to one eighth of the amount of RAM and about one-fiftieth of the memory for storing data compared to a desktop computer. The operating system Windows Phone is optimized for working with a small amount of memory. However, when creating programs, you need to be sure that the programs do not exhaust the available resources.

Windows Phone Ecosystem

The Windows Phone device was designed not just as a standalone device. It is part of an ecosystem that contains many other software systems that work together and provide users with different options.


Дата добавления: 2018-04-04; просмотров: 304; Мы поможем в написании вашей работы!

Поделиться с друзьями:






Мы поможем в написании ваших работ!