Search code examples
androidiconsandroid-5.0-lollipopandroid-tvamazon-fire-tv

Android TV App: How to show banner icon in Pre-lollipop Android TV Devices


I want to create an Android TV Application that should show bannerIcon in both pre-lollipop and post-lollipop Android TV Devices.

    <application
    android:name="com.MyApplication"
    android:allowBackup="true"
    android:icon="@drawable/ic_launcher"
    android:label="@string/app_name"
    android:theme="@style/Theme.AppCompat.Light"
    android:banner="@drawable/ic_launcher_tv">


    </application>

Currently it showing Square Icon in Pre-Lollipop Android TV Device. But it is running fine in Android TV After 5.0 Version


Solution

  • Android TV launched with Lollipop. You should not develop an Android TV app for pre-lollipop devices as they do not exist.

    From the Wikipedia on Lollipop: "Alongside Lollipop, the [I/O keynote] presentation focused on a number of new Android-oriented platforms and technologies, including Android TV"

    In addition, looking at Android Studio, you cannot create an ATV emulator for pre-lollipop.

    But for Amazon FireTV and FireTV Stick You can provide the promotional image during application's submission process, or alternatively update the metadata for an already submitted app. For that go into your app's detail's, switch to the 'Images & Multimedia' tab, click 'Edit' and next to 'Promotional image (Recommended) 1024 x 500px (landscape only) PNG or JPG' upload an image that can be used during promotions. After that it will show in place of Square ICON for more detail go through this link.

    Screen shot of Android Studio TV emulator options