Search in sources :

Example 6 with AndroidApplicationConfiguration

use of com.badlogic.gdx.backends.android.AndroidApplicationConfiguration in project myFirstGame by Juicebox47.

the class AndroidLauncher method onCreate.

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    AndroidApplicationConfiguration config = new AndroidApplicationConfiguration();
    initialize(new MyFirstGame(), config);
}
Also used : MyFirstGame(com.mygdx.game.MyFirstGame) AndroidApplicationConfiguration(com.badlogic.gdx.backends.android.AndroidApplicationConfiguration)

Example 7 with AndroidApplicationConfiguration

use of com.badlogic.gdx.backends.android.AndroidApplicationConfiguration in project libgdx by libgdx.

the class Daydream method onAttachedToWindow.

@Override
public void onAttachedToWindow() {
    super.onAttachedToWindow();
    Log.i("Andrew", "hi");
    AndroidApplicationConfiguration cfg = new AndroidApplicationConfiguration();
    setInteractive(false);
    ApplicationListener app = new MeshShaderTest();
    initialize(app, cfg);
}
Also used : MeshShaderTest(com.badlogic.gdx.tests.MeshShaderTest) ApplicationListener(com.badlogic.gdx.ApplicationListener) AndroidApplicationConfiguration(com.badlogic.gdx.backends.android.AndroidApplicationConfiguration)

Example 8 with AndroidApplicationConfiguration

use of com.badlogic.gdx.backends.android.AndroidApplicationConfiguration in project libgdx by libgdx.

the class GdxTestActivity method onCreate.

public void onCreate(Bundle bundle) {
    super.onCreate(bundle);
    // obtain the test info
    Bundle extras = getIntent().getExtras();
    String testName = (String) extras.get("test");
    GdxTest test = GdxTests.newTest(testName);
    // and run the application...
    AndroidApplicationConfiguration config = new AndroidApplicationConfiguration();
    config.useImmersiveMode = true;
    initialize(test, config);
}
Also used : Bundle(android.os.Bundle) GdxTest(com.badlogic.gdx.tests.utils.GdxTest) AndroidApplicationConfiguration(com.badlogic.gdx.backends.android.AndroidApplicationConfiguration)

Example 9 with AndroidApplicationConfiguration

use of com.badlogic.gdx.backends.android.AndroidApplicationConfiguration in project Catacomb-Snatch by Catacomb-Snatch.

the class AndroidLauncher method onCreate.

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    AndroidApplicationConfiguration config = new AndroidApplicationConfiguration();
    config.useCompass = false;
    config.useAccelerometer = false;
    initialize(new CatacombSnatch(new PlatformDependent() {

        @Override
        public void create() {
        }

        @Override
        public Object[] createPlatformObjects() {
            return new Object[0];
        }

        @Override
        public void dispose() {
        }
    }), config);
}
Also used : AndroidApplicationConfiguration(com.badlogic.gdx.backends.android.AndroidApplicationConfiguration)

Example 10 with AndroidApplicationConfiguration

use of com.badlogic.gdx.backends.android.AndroidApplicationConfiguration in project semiprime by entangledloops.

the class AndroidLauncher method onCreate.

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    AndroidApplicationConfiguration config = new AndroidApplicationConfiguration();
    initialize(new Semiprime(), config);
}
Also used : Semiprime(com.snd.semiprime.Semiprime) AndroidApplicationConfiguration(com.badlogic.gdx.backends.android.AndroidApplicationConfiguration)

Aggregations

AndroidApplicationConfiguration (com.badlogic.gdx.backends.android.AndroidApplicationConfiguration)12 ApplicationListener (com.badlogic.gdx.ApplicationListener)2 PackageManager (android.content.pm.PackageManager)1 Bundle (android.os.Bundle)1 RatioResolutionStrategy (com.badlogic.gdx.backends.android.surfaceview.RatioResolutionStrategy)1 MeshShaderTest (com.badlogic.gdx.tests.MeshShaderTest)1 GdxTest (com.badlogic.gdx.tests.utils.GdxTest)1 BdxApp (com.comp.proj.BdxApp)1 RubeLoaderTest (com.gushikustudios.rube.RubeLoaderTest)1 MyFirstGame (com.mygdx.game.MyFirstGame)1 ShatteredPixelDungeon (com.shatteredpixel.shatteredpixeldungeon.ShatteredPixelDungeon)1 Semiprime (com.snd.semiprime.Semiprime)1 PDPlatformSupport (com.watabou.utils.PDPlatformSupport)1 DefaultThreadImpl (io.anuke.kryonet.DefaultThreadImpl)1 KryoClient (io.anuke.kryonet.KryoClient)1 KryoServer (io.anuke.kryonet.KryoServer)1 ThreadProvider (io.anuke.mindustry.core.ThreadHandler.ThreadProvider)1 Platform (io.anuke.mindustry.io.Platform)1 TextField (io.anuke.ucore.scene.ui.TextField)1 DateFormat (java.text.DateFormat)1