Google VR : 切换白日梦/纸板模式

Google VR : Switch daydream / cardboard mode

我目前正在尝试 运行 一个具有 Daydream 兼容性的应用程序。一切正常,除了当我尝试切换到纸板模式时,我收到以下错误消息 "This Cardboard application is not compatible with the Daydream headsets"

根据我在网上发现的一些 post,这可能是一个明显的问题 (https://github.com/Samsung/GearVRf/issues/1618 and https://github.com/googlevr/gvr-android-sdk/issues/295),但我的应用程序正确声明了 DAYDREAM intent 过滤器,这是我的清单(我的问题发生在玩家活动)

<?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>

知道如何才能使用纸板模式吗?

我不是程序员,但我想我可能知道解决方法。顺便说一下,我有一个来自 MetroPCS Awesome phone 的 zte blade max 型号 z982。我做的第一件事就是在上面安装 CardBoard,很失望它不想使用我的蓝牙游戏手柄。所以我尝试获取 DayDream 应用程序,但 google 不让我下载它到我便宜的 phone 所以我不知道它是否可以使用我的蓝牙游戏手柄。但我确实看到我可以下载 Google VR 服务应用程序,我希望这能让我在纸板上使用我的蓝牙游戏手柄,但不幸的是。但我确实发现我可以设置 google 纸板来使用它自己或 Google 设置中的 VR 服务。

对于你的问题,我认为你需要进入纸板,然后是演示游戏。当屏幕出现时,点击屏幕底部中间的 * 按钮,这会将您带到设置屏幕,您应该会看到一个弹出窗口,询问您要使用哪种服务。 select纸板一次。我相信此解决方法对您有用。