Get the time a reading was taken from the accelerometer

  1. Import the net.rim.device.api.system.AccelerometerData class.
  2. Query the buffer for accelerometer data.
    AccelerometerData accData;
    accData = bufferedChannel.getAccelerometerData();
  3. Invoke AccelerometerData.getSampleTsHistory().
    long[] queryTimestamps = accData.getSampleTsHistory();
Next topic: Events

Was this information helpful? Send us your comments.