android ndk with accelerometer additions