Mobile Sensors are a very useful feature in modern mobile handsets that can provide you with a wide range of information about the device or its environment. Sensor data can include temperature, battery state, accelerometer information that indicates the movement or angle of a device and more! To access this information, Java ME includes an API that makes it very easy to leverage Sensor Data in your applications.
In this article
, Vikram Goyal provides you with an introduction to working with Mobile Sensors and provides you with some code samples and links that will help you get started incorporated them into your next project. Here is a brief excerpt from this article,
"The Mobile Sensor API (JSR 256 for Java Platform, Micro Edition [Java ME]) provides the ability for Java MIDlets to talk to the physical and virtual sensors available on the device. This is a particularly useful API, because it can provide the MIDlet the means to gauge the health not only of the device but also of the outside physical environment, which makes some very interesting applications possible. Of course, as with all APIs, the implementation of this API by the device manufacturer determines the actual sensors that are available."
You can read the rest of this article here
. Or click here
to check out additional technical articles on Java ME.