1 package ru
.deadsoftware
.cavedroid
;
3 import android
.content
.pm
.PackageManager
;
4 import android
.os
.Bundle
;
5 import com
.badlogic
.gdx
.backends
.android
.AndroidApplication
;
6 import com
.badlogic
.gdx
.backends
.android
.AndroidApplicationConfiguration
;
8 public class AndroidLauncher
extends AndroidApplication
{
10 protected void onCreate(Bundle savedInstanceState
) {
11 super.onCreate(savedInstanceState
);
12 AndroidApplicationConfiguration config
= new AndroidApplicationConfiguration();
13 config
.useImmersiveMode
= true;
14 String gameFolder
= "";
16 gameFolder
= getPackageManager().getPackageInfo(getPackageName(), 0).applicationInfo
.dataDir
;
17 } catch (PackageManager
.NameNotFoundException e
) {
21 CaveGame caveGame
= new CaveGame(gameFolder
, true);
22 caveGame
.setDebug(BuildConfig
.DEBUG
);
23 initialize(caveGame
, config
);
27 public void onBackPressed() {