Streamit TV - Documentation

How to setup Android TV virtual device for Streamit TV App Installation ?

Android TV virtual device for Streamit TV App Installation Guide

This guide will walk you through setting up an Android TV virtual device for testing and running your Streamit TV application.

Prerequisites

  • Android Studio installed.
  • Flutter SDK installed.
  • Streamit-laravel-flutter-tv-app project downloaded.

Configure Android Virtual Device (AVD)

Now you need to create and add the virtual device:

1. In the Device Manager dialog, click on “Create Virtual Device” as indicated by the red arrow.

2. Alternatively, if no devices are connected, you can click on “Add a new device…” button.

3. This will start the process of setting up your Android TV virtual device.

– Click on Create new device.

Select the appropriate TV device definition:

1. In the Category sidebar, select “TV”.

2. From the available options, choose “Television (1080p)”.

3. This will configure a 55.0″ device with 1920×1080 resolution and xhdpi density.

4. Click “Next” to continue setup.

Select the appropriate system image for your Android TV device:

1. Choose the “UpsideDownCake” system image with API level 34.

2. Make sure to select the x86 architecture variant.

3. The system image should be for “Android 14.0 (Android TV)”.

4. Click “Next” to continue.

– The final dialog box will be prompted to you for naming your device name, the recommended name is “Television (1080p) API 34” as shown in the red box.

– Verify the configuration shows the device is a Television (1080p) with 1920×1080 resolution.

Click “Finish” to proceed.

Access Device Manager

After configuration, you can access the Device Manager:

1. Click on the “Device Manager” button in the top right of Android Studio.

2. This will open the device management panel where you can start, stop, or manage your virtual devices.

3. From here, you can launch your newly created Android TV virtual device.

4. After starting the Android TV virtual device, run Streamit TV App.

Using D-Pad Navigation

Android TV applications rely on D-pad navigation rather than touch input:

1. Click on the “Extended Controls” button in the top right of Running Devices Menu Bar in Android Studio.

2. It will open up a D-PAD Controls.

  1. When testing your app in the emulator, use the arrow keys on your keyboard to simulate D-pad movement.
  2. Press Enter/Return to simulate the center “OK” button.
  3. Use Escape or Back keys to simulate the back button.