Android Open Source - SimpleGDX Main Activity






From Project

Back to project page SimpleGDX.

License

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.

Java Source Code

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);
    }
}




Java Source Code List

com.proglive.lesson1.alyoshin.simplegdx.DesktopStarter.java
com.proglive.lesson1.alyoshin.simplegdx.MainActivity.java
com.proglive.lesson1.alyoshin.simplegdx.MyGame.java