10-23-2022 08:58 AM - edited 10-24-2022 11:32 PM
I have an a launch app. It it a common 2d ui application in android. I use it to pass params to another vr application.
In system ov version 42. it can launch the vr application. but when I update system ov to version 46. It doen't work. it it Only play audio.
below is my launch app AndroidManifest.xml
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="my.package.name"
android:installLocation="auto"
android:versionCode="20"
android:versionName="2.0">
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<application
android:allowBackup="true"
android:icon="@drawable/nvidia_logo"
android:label="@string/app_name"
android:networkSecurityConfig="@xml/network"
android:screenOrientation="landscape"
android:theme="@style/Theme.AppCompat.DayNight"
android:usesCleartextTraffic="true">
<meta-data
android:name="com.google.android.actions"
android:resource="@xml/network" />
<activity android:name=".SettingActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
my vr application AndroidManifest.xml:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="my.pacakge.name"
android:installLocation="auto"
android:versionCode="20"
android:versionName="2.0">
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="oculus.permission.handtracking" />
<uses-permission android:name="com.oculus.permission.HAND_TRACKING" />
<uses-feature android:name="android.hardware.usb.host" /> <!-- Tell the system this app requires OpenGL ES 3.1. -->
<uses-feature
android:glEsVersion="0x00030001"
android:required="true" /> <!-- Tell the system this app works in either 3dof or 6dof mode -->
<uses-feature
android:name="android.hardware.vr.headtracking"
android:required="true" /> <!-- Tell the system this app uses the microphone -->
<uses-feature
android:name="oculus.software.handtracking"
android:required="false" />
<uses-feature
android:name="android.hardware.microphone"
android:required="false" />
<application
android:allowBackup="false"
android:icon="@drawable/nvidia_logo"
android:label="@string/app_name"
android:networkSecurityConfig="@xml/network"
android:screenOrientation="landscape"
android:theme="@style/Theme.AppCompat.DayNight"
android:usesCleartextTraffic="true">
<meta-data
android:name="com.google.android.actions"
android:resource="@xml/network" />
<meta-data
android:name="com.oculus.supportedDevices"
android:value="quest|quest2" />
<meta-data
android:name="com.oculus.vr.focusaware"
android:value="true" />
<meta-data android:name="com.oculus.handtracking.version"
android:value="V2.0"/>
<meta-data
android:name="com.oculus.handtracking.frequency"
android:value="HIGH" />
<meta-data
android:name="com.samsung.android.vr.application.mode"
android:value="vr_only" />
<activity
android:name=".MainActivity"
android:configChanges="screenSize|screenLayout|orientation|keyboardHidden|keyboard|navigation|uiMode"
android:excludeFromRecents="false"
android:launchMode="singleTask"
android:exported="true"
android:screenOrientation="landscape"
android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen">
<meta-data
android:name="android.app.lib_name"
android:value="mylibname" />
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
<category android:name="com.oculus.intent.category.VR"/>
</intent-filter>
</activity>
</application>
</manifest>
they is two different apk. application is different.
my startActivity code is:
intent.setAction("android.intent.action.MAIN");
intent.addCategory("android.intent.category.INFO");
ComponentName componentName = new ComponentName("applicationid", "my.package.name.MainActivity");
intent.setComponent(componentName);
intent.setPackage("my.package.name");
Did I lack some params in my AndroidManifest.xml or something else?
------------update------
I add vr config in my launch app AndroidManifest.xml And startActivity works. But my launch app can not show 2d ui like Button and EditText.
11-26-2023 11:22 PM
Hi Iam also facing the same issue, can you give the vr config to be added