現在、デイドリーム互換のアプリを実行しようとしています。Cardboard モードに切り替えようとしている場合を除いて、すべて正常に動作し、「この 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>
段ボールモードを使用できるようにするために何をすべきか考えていますか?