The Java Source

Technical Article: Working with the Mobile Sensor API

October 5, 2010 By: jacob Lehrbaum
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.

Join the discussion

Comments ( 0 )
Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.Captcha


More on Java

Integrated Cloud Applications & Platform Services