Skip to content

Instantly share code, notes, and snippets.

@fnk0
Created October 12, 2016 16:31
Show Gist options
  • Save fnk0/11b7961677d4872d9d088cf43ee5ee91 to your computer and use it in GitHub Desktop.
Save fnk0/11b7961677d4872d9d088cf43ee5ee91 to your computer and use it in GitHub Desktop.
Add this to the manifest
<!-- Add this to the activity tag -->
<activity
android:name=".ui.main.MainActivity"
android:banner="@drawable/banner"
android:icon="@drawable/banner"
android:label="@string/app_name"
android:logo="@drawable/banner"
android:screenOrientation="landscape">
<!-- Add this INSIDE the application tag -->
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LEANBACK_LAUNCHER"/>
</intent-filter>
<!-- Add this inside the manifest tag and outside the application tag -->
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.RECORD_AUDIO"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-feature
android:name="android.hardware.touchscreen"
android:required="false"/>
<uses-feature
android:name="android.software.leanback"
android:required="true"/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment