Programming a phone is a unique experience compared with using any stationary computing device that has come before. The phone can interact with its environment by knowing where it is in space and its relation with the earth. If the phone is tilted, shaken, or stirred, the phone senses it. The phone is aware of its relation to magnetic north and even its coordinate position on the globe. You can access device capabilities including:
- Querying the capabilities of the device itself.
- Sensors that detect changes in the real world such as accelerometer, gyroscope, and compass.
- The built-in microphone and camera.