Technical Article: Working with the Mobile Sensor API

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.
Comments:

Post a Comment:
  • HTML Syntax: NOT allowed
About

Insider News from the Java Team at Oracle!

duke
javeone logo
Links


Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
2
5
6
7
12
13
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today