SDL: Link to your own apk file as env var

This commit is contained in:
Sergii Pylypenko
2015-07-10 23:42:22 +03:00
parent efeb5baa99
commit cdd6ad13ef
3 changed files with 4 additions and 3 deletions

View File

@@ -619,6 +619,7 @@ class Settings
nativeSetEnv( "SDCARD", Environment.getExternalStorageDirectory().getAbsolutePath() );
nativeSetEnv( "ANDROID_VERSION", String.valueOf(android.os.Build.VERSION.SDK_INT) );
nativeSetEnv( "ANDROID_PACKAGE_NAME", p.getPackageName() );
nativeSetEnv( "ANDROID_MY_OWN_APP_FILE", p.getPackageResourcePath() );
try {
nativeSetEnv( "ANDROID_APP_NAME", p.getString(p.getApplicationInfo().labelRes) );
} catch (Exception eeeeee) {}