2
私は2つのビュー(画面)を持つ簡単なAndroidアプリケーションを持っています。 私のアプリはAndroid TVでも動作させようとしています。私は何が間違っているのか分かりませんが、エミュレータで私のアプリケーションを実行すると私のアプリのロゴは表示されません。私のアプリをAndroid TVアプリケーションに変換するには?
私のマニフェストファイルに何が問題になっています:
<?xml version="1" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="xxx.flagmaster">
<uses-feature android:name="android.software.leanback"
android:required="false" />
<uses-feature android:name="android.hardware.touchscreen"
android:required="false" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<category android:name="android.intent.category.LEANBACK_LAUNCHER"/>
<application
android:allowBackup="true"
android:icon="@drawable/flagmasterlogo"
android:label="@string/app_name"
android:banner="@drawable/flagmastertv"
android:supportsRtl="true">
android:theme="@style/AppTheme">
<activity android:name=".MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LEANBACK_LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".FlagShowActivity"
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize">
<meta-data
android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />
<intent-filter>
<category android:name="android.intent.category.LEANBACK_LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>