Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries. Thanks for all your past and future contributions.

Talk:How to get accelerometer sensor values in Java ME

From Wiki
Jump to: navigation, search

The *.JAR compilation fails when it is executed from a nokia 5800 xm anyway from "Start(int)" or "Start(double)". It said: "Exception in static initializer: java.lang.NumberFormatException

12 Sep
Article Review by Larry101 (20090912)

The article provides a concise overview of how to obtain accelerometer data using the Java Mobile Sensor API. The basic steps involved in accessing the accelerometer data are outlined. These steps are then demonstrated through the use of a code example which demonstrates finding the accelerometer sensor, getting its URL, opening a connection and receiving data (both as integer and double primitive types).

The code examples are clear and to the point. The use of buffers to store accelerometer input and the subsequent averaging of the data stored in the buffers demonstrates a simple, yet effective means of smoothing accelerometer data (which is generally very "noisy" data). Such smoothing is essential in order to make effective use of input from accelerometer sensors.