Send the cache dir path to the app.

This commit is contained in:
Unknown W. Brackets 2015-06-27 18:27:54 -07:00
parent bad22f7b78
commit bc29409817

View File

@ -218,6 +218,8 @@ public class NativeActivity extends Activity {
NativeApp.audioConfig(optimalFramesPerBuffer, optimalSampleRate);
NativeApp.init(model, deviceType, displaySize.x, displaySize.y, languageRegion, apkFilePath, dataDir, externalStorageDir, libraryDir, shortcutParam, installID, Build.VERSION.SDK_INT);
NativeApp.sendMessage("cacheDir", getCacheDir().getAbsolutePath());
// OK, config should be initialized, we can query for screen rotation.
if (Build.VERSION.SDK_INT >= 9) {
updateScreenRotation();