Expose the Android system version to the app. Useful to enable/disable android-only features like immersive mode

This commit is contained in:
Henrik Rydgard committed 2014-07-20 12:04:22 +02:00
1 parent ed04a0bf28
commit 2ab2016002
7 files changed
+24 -3

No files matched your search

@@ -211,7 +211,7 @@ public class NativeActivity extends Activity {
String languageRegion = Locale.getDefault().getLanguage() + "_" + Locale.getDefault().getCountry();
NativeApp.audioConfig(optimalFramesPerBuffer, optimalSampleRate);
NativeApp.init(deviceType, languageRegion, apkFilePath, dataDir, externalStorageDir, libraryDir, shortcutParam, installID, useOpenSL());
NativeApp.init(deviceType, languageRegion, apkFilePath, dataDir, externalStorageDir, libraryDir, shortcutParam, installID, useOpenSL(), Build.VERSION.SDK_INT);
// OK, config should be initialized, we can query for screen rotation.
if (Build.VERSION.SDK_INT >= 9) {