Fire TV Sample App Android - Touch and D-Pad
This sample Android project demonstrates how to build the main UI of a Fire TV application in order to support both Touch interactions and Remote D-Pad controls.
This project can be imported in Android Studio (tested on Android Studio 4.1.1).
Make sure sure to check out the related tutorial on the Amazon Developer Blog
How to use this repository
- Clone or download the repository
- Import the project in Android Studio
- Run the app
Which devices can you run this sample app on
You can run this sample app on:
- Amazon Fire TV device (Fire OS 5+) - recommended
- Android TV emulator (API 21+)
How to test Touch on Fire TV devices without a touchscreen
The easiest solution is to connect a wireless mouse to your Amazon Fire TV. Mouse on Android simulates touch interaction. You can do this by:
- Going to "Settings"
- Go to "Remote and Bluetooth Devices"
- Go to "Other Bluetooth devices"
- Follow the on-screen instructions on how to connect your Bluetooth mouse
- After connecting the mouse, go back to your app. The mouse will show a cursor on screen you can use to simulate touch interactions, including clicks and gestures.
License
This project is licensed under the Apache-2.0 License.