GithubHelp home page GithubHelp logo

amzn / firetv-sample-touch-app Goto Github PK

View Code? Open in Web Editor NEW
13.0 7.0 13.0 111 KB

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.

License: Apache License 2.0

Java 100.00%
android tv firetv apps ott template sample samples sample-app amazon

firetv-sample-touch-app's Introduction

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

Screenshot

How to use this repository

  1. Clone or download the repository
  2. Import the project in Android Studio
  3. Run the app

Which devices can you run this sample app on

You can run this sample app on:

  1. Amazon Fire TV device (Fire OS 5+) - recommended
  2. 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:

  1. Going to "Settings"
  2. Go to "Remote and Bluetooth Devices"
  3. Go to "Other Bluetooth devices"
  4. Follow the on-screen instructions on how to connect your Bluetooth mouse
  5. 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.

firetv-sample-touch-app's People

Contributors

amazon-auto avatar mariuxtheone avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

firetv-sample-touch-app's Issues

Better Leanback sample request.

Hi,

Sorry for the long post but this isn't a good sample for people that want to port their TV apps to Fire TV auto.
Starting from your own guides on how to create a FireTV app, the recommended way to do so is by using the Androidx Leanback Library.

Screenshot 2022-09-19 at 15 28 03

Leanback provides a lot of templates to simplify the creation of TV apps. It basically simplifies navigation and focus between the different elements that can be shown while using the D-pad.

This library wasn't clearly intended to be used with touch controls or mouse, there are a lot of issues that have been reported to google if one tries to run a leanback app on a tablet and many more things that could be added to this sample.

For example:

It'd be nice to have a sample of how to make a leanback app compatible with touch, instead of how to use RecyclerView and add some focusability properties.

Also an emulator for fireTV auto would be nice. An Emulator does the job for now, but there are some specific things of FireTV auto like no connectivity or automotive SDK that are cannot be tested.

We're interested in porting our fireTV auto but we would be fighting against the framework to make it work as intended.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.