我目前正在尝试运行具有 Daydream 兼容性的应用程序。一切正常,除了当我尝试切换到纸板模式时,我收到以下错误消息“此 Cardboard 应用程序与 Daydream 耳机不兼容”
根据我在网上找到的一些帖子,这可能是一个明显的问题(https://github.com/Samsung/GearVRf/issues/1618和https://github.com/googlevr/gvr-android-sdk/issues/295)但我的应用程序正确声明了 DAYDREAM 意图过滤器,这是我的清单(我的问题发生在 PlayerActivity 中)
<?xml version="1.0" encoding="utf-8"?>
<!-- Required GLES 2 -->
<uses-feature android:glEsVersion="0x00020002" android:required="true" />
<!-- Required by the app to stream video. -->
<uses-permission android:name="android.permission.INTERNET" />
<!-- Make accelerometer and gyroscope hard requirements for good head tracking. -->
<uses-feature android:name="android.hardware.sensor.accelerometer" android:required="true"/>
<uses-feature android:name="android.hardware.sensor.gyroscope" android:required="true"/>
<!-- Indicates use of Android's VR-mode, available only on Android N+. -->
<uses-feature android:name="android.software.vr.mode" android:required="true"/>
<!-- Indicates use of VR features that are available only on Daydream-ready devices. -->
<uses-feature android:name="android.hardware.vr.high_performance" android:required="true"/>
<application
android:allowBackup="true"
android:icon="@mipmap/ic_sphereplay"
android:label="@string/app_name"
android:theme="@style/AppTheme"
android:largeHeap="true">
<activity
android:name=".MainActivity"
android:configChanges="orientation|keyboardHidden|screenSize"
android:theme="@style/SpherePlayMaterialTheme"
android:label="@string/app_name" >
<!-- Cardboard -->
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".PlayerActivity"
android:screenOrientation="landscape"
android:theme="@style/SpherePlayMaterialTheme"
android:resizeableActivity="false"
android:configChanges="density|keyboardHidden|navigation|orientation|screenSize|uiMode"
android:launchMode="singleTask">
<intent-filter>
<category android:name="com.google.intent.category.CARDBOARD" />
<action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.DEFAULT"/>
<category android:name="android.intent.category.BROWSABLE"/>
<data android:scheme="spmedia"/>
</intent-filter>
</activity>
<activity
android:name=".DaydreamActivity"
android:screenOrientation="landscape"
android:theme="@style/SpherePlayMaterialTheme"
android:resizeableActivity="false"
android:configChanges="density|keyboardHidden|navigation|orientation|screenSize|uiMode"
android:enableVrMode="@string/gvr_vr_mode_component"
android:launchMode="singleTask">
<!-- The VR icon to be used in Daydream Home comes in two parts:
a foreground icon and a background icon. -->
<meta-data
android:name="com.google.android.vr.icon"
android:resource="@drawable/vr_icon_fg" />
<meta-data
android:name="com.google.android.vr.icon_background"
android:resource="@drawable/vr_icon_bg" />
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="com.google.intent.category.DAYDREAM" />
</intent-filter>
</activity>
</application>
知道该怎么做才能使用纸板模式吗?