I was able to get in touch with Paul and he gave me the code that allows AppGameKit Android apps to allow screen sleep. Since we really didn't like that our apps prevent screen sleep this was very important to us.
In main.c you will find a line that reads:
ANativeActivity_setWindowFlags( state->activity, AWINDOW_FLAG_KEEP_SCREEN_ON, 0 );
Remove or comment out this line.
Next find APP_CMD_INIT_WINDOW and change that case to read like so:
case APP_CMD_INIT_WINDOW:
LOGI("Window Init");
// The window is being shown, get it ready.
if (engine->app->window != NULL) {
engine_init_display(engine);
initialised = 1;
}
resumeapp2();
engine->animating = 1; //this is the new line
break;
Then recompile with cygwin and you should be all set.
You may be able to remove the Android manifest permission for wake lock, but you cannot do that if you use push notifications as GCM requires wakelock.
This has also removed issues we were seeing where folks would shut off the screen when the app was active then return to a black screen.
Enjoy!