私はUnity3Dを使用してAndroid TVアプリケーションを作成し、適切なAndroidマニフェストを作成しようとしています。Android Manifest for Android TVのみ - サポートしているデバイスが少なすぎますか?
アプリができるだけ多くのAndroid TV端末に表示され、スマートフォンやタブレットには表示されません。
ドキュメントは言う:
アプリは、Androidテレビで必要とされるLeanbackにユーザーインターフェイスを使用していることを宣言します。モバイル(携帯電話、ウェアラブル、タブレットなど)とAndroid TVで動作するアプリを開発する場合は、必須の属性値をfalseに設定します。 required属性の値をtrueに設定すると、アプリはLeanback UIを使用するデバイスでのみ実行されます。
したがって、私は自分のマニフェストで真に必要なリーンバックを設定しました。 これは、私のアプリケーションが40に起動されるデバイスの数を減らし、私自身のテストデバイス(Sony Bravia KDL 55W805C)は含まない。 Sony Braviaデバイスでは、必要以上に制限されている4Kモデルしか含まれていないようです。
すべてのAndroid TVがLeanback UIを使用していると仮定して間違っていますか?
スマートフォンやタブレットを使用せずにできるだけ多くのAndroid TVデバイスでアプリを利用できるようにするために、マニフェストに追加/削除する必要があるものは何ですか?
ここでは全体のマニフェストだ、場合に問題がどこかにある:
<?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">
<uses-feature
android:name="android.hardware.touchscreen"
android:required="false" />
<uses-feature
android:name="android.software.leanback"
android:required="true" />
<supports-screens
android:smallScreens="false"
android:normalScreens="false"
android:largeScreens="true"
android:xlargeScreens="true"
android:requiresSmallestWidthDp="600" />
<application
android:theme="@style/UnityThemeSelector"
android:icon="@drawable/app_icon"
android:label="@string/app_name"
android:debuggable="true">
<activity
android:name="com.unity3d.player.UnityPlayerActivity"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<meta-data android:name="unityplayer.UnityActivity" android:value="true" />
<category android:name="android.intent.category.LEANBACK_LAUNCHER" />
</activity>
</application>
あなたはソニーブラビアが40のリストの一部ではないことをどのように知っていますか?また、[このSO post](http://stackoverflow.com/a/37724735/1759443)を参照してください。 –
リストはメーカーによってソートされているので、ソニー・ブラビアのリストは2つしかありませんが、私のリストはありません。私はそれ以来、デバイスのリストが正確ではないことを発見しました。私の会社が立ち上げた別のアプリも、40台のデバイスをリストするだけですが、リストにないデバイスでダウンロードできます。 – Alice