mirror of
https://github.com/XProger/OpenLara.git
synced 2025-08-25 22:21:09 +02:00
fix for Android 13 support
This commit is contained in:
@@ -11,17 +11,13 @@
|
||||
<!--
|
||||
<uses-permission android:name="android.permission.INTERNET" />
|
||||
-->
|
||||
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
|
||||
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
|
||||
<uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE" />
|
||||
|
||||
<application
|
||||
android:allowBackup="true"
|
||||
android:icon="@drawable/ic_launcher"
|
||||
android:label="@string/app_name"
|
||||
android:banner="@drawable/banner"
|
||||
android:isGame="true"
|
||||
android:requestLegacyExternalStorage="true">
|
||||
android:isGame="true">
|
||||
<activity
|
||||
android:name=".MainActivity"
|
||||
android:label="@string/app_name"
|
||||
|
@@ -85,8 +85,8 @@ public class MainActivity extends GvrActivity implements OnTouchListener, OnKeyL
|
||||
gvrView = view;
|
||||
|
||||
try {
|
||||
String content = Environment.getExternalStorageDirectory().getAbsolutePath();
|
||||
wrapper.onCreate(content + "/OpenLara/", getCacheDir().getAbsolutePath() + "/");
|
||||
String content = getExternalFilesDir(null).getAbsolutePath();
|
||||
wrapper.onCreate(content + "/", getCacheDir().getAbsolutePath() + "/");
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
finish();
|
||||
|
Reference in New Issue
Block a user