i'm making daydream app android crashes immediately. dont know what's causing problem. think has androidmanifest looks fine me. hope can me out because gets annoying. p.s. i'm working unity 5 maybe is'nt possible @ make daydream app unity?
<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.unity3d.player" android:installlocation="preferexternal" android:versioncode="1" android:versionname="1.0"> <supports-screens android:smallscreens="true" android:normalscreens="true" android:largescreens="true" android:xlargescreens="true" android:anydensity="true"/> <application android:theme="@android:style/theme.notitlebar.fullscreen" android:icon="@drawable/app_icon" android:label="@string/app_name" android:debuggable="true"> android:label="@string/app_name" android:supportsrtl="true" <activity android:name="com.unity3d.player.unityplayeractivity" android:label="@string/app_name"> <meta-data android:name="unityplayer.unityactivity" android:value="true" /> </activity> <service android:name=".mydream" android:exported="true" android:icon="@drawable/app_icon" android:label="@string/app_name" android:permission="android.permission.bind_dream_service"> <intent-filter> <action android:name="android.service.dreams.dreamservice" /> <category android:name="android.intent.category.default" /> </intent-filter> </service> </application> </manifest>
it manifest.
you missing important tags it.
<!-- vr feature tags. --> <uses-feature android:name="android.software.vr.mode" android:required="false"/> <uses-feature android:name="android.hardware.vr.high_performance" android:required="false"/>
also
<uses-feature android:glesversion="0x00020000" />
and make sure there no marshmallow's runtime permission problem, alsi include
<uses-sdk android:minsdkversion="19" android:targetsdkversion="22"
you need download google vr sdk unity able properly develop daydream app.
below full manifest google vr sdk.
<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android"> <application android:icon="@drawable/app_icon" android:label="@string/app_name"> <activity android:name="com.google.unity.googleunityactivity" android:label="@string/app_name" android:screenorientation="landscape" android:launchmode="singletask" android:configchanges="mcc|mnc|locale|touchscreen|keyboard|keyboardhidden|navigation|orientation|screenlayout|uimode|screensize|smallestscreensize|fontscale"> <intent-filter> <action android:name="android.intent.action.main" /> <category android:name="android.intent.category.launcher" /> <category android:name="com.google.intent.category.cardboard" /> </intent-filter> <meta-data android:name="unityplayer.unityactivity" android:value="true" /> </activity> <meta-data android:name="immersive_mode" android:value="true" /> </application> <!-- set target sdk version lollipop prevent issues marshmallow's runtime permissions. --> <uses-sdk android:minsdkversion="19" android:targetsdkversion="22" /> <uses-feature android:glesversion="0x00020000" /> <uses-feature android:name="android.hardware.sensor.accelerometer" android:required="true"/> <uses-feature android:name="android.hardware.sensor.gyroscope" android:required="true"/> <uses-permission android:name="android.permission.nfc"/> <uses-permission android:name="android.permission.read_external_storage" /> <uses-permission android:name="android.permission.internet" /> <!-- vr feature tags. --> <uses-feature android:name="android.software.vr.mode" android:required="false"/> <uses-feature android:name="android.hardware.vr.high_performance" android:required="false"/> </manifest>
Comments
Post a Comment