-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update AndroidManifest.xml and create MainActivity.java to launch demo
Based on the MainActivity.java in: OpenXR-SDK-Source-release-1.0.13/src/tests/hello_xr/java/com/khronos/hello_xr Following instructions from: https://gayanediriweera.github.io/code/2021/04/06/how-to-run-helloxr-on-oculus-quest.html
- Loading branch information
Showing
2 changed files
with
17 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
app/src/main/java/com/example/oculushelloxr/MainActivity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// Copyright (c) 2017-2020 The Khronos Group Inc | ||
// | ||
// SPDX-License-Identifier: Apache-2.0 | ||
package com.example.oculushelloxr; | ||
|
||
public class MainActivity extends android.app.NativeActivity { | ||
static { | ||
// Note: Must handle loading of dependent shared libraries manually before | ||
// the shared library that depends on them is loaded, since there is not | ||
// currently a way to specify a shared library dependency for NativeActivity | ||
// via the manifest meta-data. | ||
System.loadLibrary("openxr_loader"); | ||
System.loadLibrary("hello_xr"); | ||
} | ||
} |