Replace jni/Core.cpp with the attached version and follow the instructions on line 24.
When doing this it is highly recommended that you use SetOrientationAllowed(1,0,0,0) so AppGameKit doesn't try to rotate in any way.
If you want to use this with a landscape orientation then open AndroidManifest.xml and change
android:screenOrientation="portrait"
to
android:screenOrientation="landscape"
This will make any keyboard or status bar also appear landscape, SetOrientationAllowed(1,0,0,0) must still be used even though it looks landscape.