records accelerometer (& gyroscope) readings to a csv
incorporated Android NDK's Hello-JNI sample