1This code is copied from the Android NDK r7, from 2source/android/native_app_glue/ . 3 4A few GCC warnings were suppressed. 5 6'android_app_write_cmd' was made non-static so that resize events can 7be injected from FreeGLUT. 8