first crack at Android accelerometer access - try using Android NDK to avoid Java/JNI calls