android window work with jni, touch input and acc sensor