Back to project page SimpleGDX.
The source code is released under:
Apache License
If you think the Android project SimpleGDX listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.proglive.lesson1.alyoshin.simplegdx; //w w w .j a v a2s .c om import android.os.Bundle; import com.badlogic.gdx.backends.android.AndroidApplication; import com.badlogic.gdx.backends.android.AndroidApplicationConfiguration; public class MainActivity extends AndroidApplication { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); AndroidApplicationConfiguration cfg = new AndroidApplicationConfiguration(); cfg.useAccelerometer = false; cfg.useCompass = false; cfg.useWakelock = true; cfg.useGL20 = true; initialize(new MyGame(), cfg); } }