|
In this video, we show you how to use sensors to enhance the user interface of your apps. We introduce the Uix namespace and walk you through code which uses Motion events and the Proximity and Tilt sensors.
|
|
Driving your UI With Sensors
In these videos we like to focus on the code level details of bada features and this one is no exception. We introduce several sample apps that you can use as the basis for your own sensor driven apps.
We'll show you how to create a multi-touch drawing app which responds to the shake and double tap motion events. Then we explain how to use the Proximity Sensor and modify the VideoPlayer class in the MediaPlayer sample from the SDK to pause the video if an object is close by.
Finally we introduce the Tilt Sensor, explain azimuth, pitch and roll and show you how to use the pitch value to implement a spirit level which displays whether a device is level.
The source code used in this video will be published in the sample code section shortly.
We hope this video helps to inspire you to create some great apps using sensors.