Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
MilderJoghurt
FrozenNumbers
Commits
27bca4f2
Commit
27bca4f2
authored
Jan 14, 2016
by
Sven Greiner
Browse files
Android: Keep screen on
parent
80fd5c78
Changes
1
Hide whitespace changes
Inline
Side-by-side
android/src/org/milderjoghurt/frozennumbers/android/AndroidLauncher.java
View file @
27bca4f2
...
...
@@ -2,6 +2,7 @@ package org.milderjoghurt.frozennumbers.android;
import
android.os.Bundle
;
import
android.view.View
;
import
android.view.WindowManager
;
import
com.badlogic.gdx.backends.android.AndroidApplication
;
import
com.badlogic.gdx.backends.android.AndroidApplicationConfiguration
;
...
...
@@ -11,6 +12,7 @@ public class AndroidLauncher extends AndroidApplication {
@Override
protected
void
onCreate
(
Bundle
savedInstanceState
)
{
super
.
onCreate
(
savedInstanceState
);
getWindow
().
addFlags
(
WindowManager
.
LayoutParams
.
FLAG_KEEP_SCREEN_ON
);
AndroidApplicationConfiguration
config
=
new
AndroidApplicationConfiguration
();
initialize
(
new
FrozenNumbersGame
(),
config
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment