[ANDROID] don't dim screen or show status bar when emulator is playing

This commit is contained in:
Toad King 2012-11-30 13:13:19 -05:00
parent 67fb8485c6
commit 61b42c82e2
2 changed files with 4 additions and 0 deletions

View File

@ -25,6 +25,7 @@
#include <android/configuration.h>
#include <android/looper.h>
#include <android/native_activity.h>
#include <android/window.h>
struct android_app
{

View File

@ -597,6 +597,9 @@ void ANativeActivity_onCreate(ANativeActivity* activity,
activity->callbacks->onInputQueueCreated = onInputQueueCreated;
activity->callbacks->onInputQueueDestroyed = onInputQueueDestroyed;
// these are set only for the native activity, and are reset when it ends
ANativeActivity_setWindowFlags(activity, AWINDOW_FLAG_KEEP_SCREEN_ON | AWINDOW_FLAG_FULLSCREEN, 0);
struct android_app* android_app = (struct android_app*)malloc(sizeof(struct android_app));
memset(android_app, 0, sizeof(struct android_app));
android_app->activity = activity;