Questions tagged [android-tv]

Android TV is a smart TV platform running the Android operating system. It provides an interactive television experience by overlaying user interface on top of existing television programming. Use android-tv for questions specifically on the TV platform and not for general Android questions.

Android TV is a smart TV platform running the Android operating system. It provides an interactive television experience by overlaying user interface on top of existing television programming.

1380 questions
362
votes
9 answers

How do I use tools:overrideLibrary in a build.gradle file?

I'm using the leanback libraries, which require Android 17 or later. However my app supports a minSDK of 16, so I get a build error from gradle saying Error:Execution failed for task ':Tasks:processPhoneDebugManifest'. > Manifest merger failed :…
emmby
  • 99,783
  • 65
  • 191
  • 249
47
votes
5 answers

getLaunchIntentForPackage is null for some apps

I'm building a service that sends a list of installed apps from an Android TV or a Fire TV to a mobile phone. The phone then sends back the package name of the app it wants to launch and the service launches it. This is the code that creates the…
Jeremy Roberts
  • 751
  • 1
  • 5
  • 13
42
votes
0 answers

Generated system.img not running on emulator

I wanted to build a custom ROM for Android TV. I have followed the steps given on the Android Source Code - AOSP website and downloaded the source using the commands below: repo init -u https://android.googlesource.com/platform/manifest -b…
36
votes
3 answers

Android TV RecyclerView focus interaction

I'm currently using a regular RecyclerView with GridLayoutManagerwith different spanCount depeding on the viewType for an Android TV app. All is working decent but I have 2 issues: If you long press the dpad down to scroll fast between the items…
Tepes Lucian
  • 908
  • 1
  • 7
  • 17
31
votes
2 answers

How to increase the size of a current focused item on a RecyclerView?

I'm trying to make an horizontal list with a RecyclerView, that when I put the focus on an item, increase the size of this. I want to make this effect: Do you have any ideas to accomplish this?
Skycorsarius
  • 979
  • 1
  • 8
  • 13
29
votes
4 answers

How can I check if an app is running on an Android TV

Is there a way to check if an app is running on an Android TV or Android Mobile? I know how to check the running build. I want to start a specific service if the app is running on an Android TV vs Mobile. Was hoping to house the two under the same…
leafartist
  • 613
  • 1
  • 5
  • 12
26
votes
3 answers

What protocol does Android TV Remote use?

What protocol does an Android TV Remote use? Seems like Anymote is no longer used. But there are still applications like Android TV Remote Control and Remote Android TV which work quite well with even the newer Android TV's. Can someone please point…
Ashwin
  • 393
  • 1
  • 4
  • 10
20
votes
1 answer

Detect if HDMI service is UP on android TV

We have a problem with HDMI service. Our Android TV app are set as default on STB. When you launch STB it doesnt show you launcher, it shows you out App immediately with playing HLS video stream. For playing video we are using Exo Player version…
bene25
  • 580
  • 6
  • 18
18
votes
5 answers

Scroll to given position in Android Leanback ListRow

I'm using the Google Leanback widgets in an Android TV application. It utilizes a RowsFragment with ListRows in it. What I'm trying to determine is if there is any way to programmatically scroll to a particular object within one of the rows. I've…
ebr
  • 323
  • 3
  • 10
17
votes
1 answer

Admob for Android TV app

Developing an application for Android TV, I have a question on the use of ads. The Android TV layout guide states that: Advertising on Android TV must always be full-screen. Ads must not appear alongside or over content. The user must be able to…
Jose Gómez
  • 3,110
  • 2
  • 32
  • 54
16
votes
2 answers

Limit scrolling speed on ListRow

I was looking at Netflix app and their scrolling behaviour.I would like to do the same but don't know where to start. I know how to override LayoutManager for RecyclerView(though I don't to save that as last resort). Is there easier way to control…
harisk92
  • 1,088
  • 1
  • 14
  • 24
15
votes
3 answers

Multiple horizontal RecyclerView inside NestedScrollView steal focus

Actually I'm currently working for a AndroidTV app. I have multiple horizontal RecyclerView right to left inside a NestedScrollView like that image. Problem is that when I scroll more towards left, then focus moves to different list or different…
Puspak Ghosh
  • 171
  • 1
  • 10
15
votes
2 answers

Android TV emulator with Google APIs

I have an android game in Google Play. Now I'm trying to make it compatible with Android TV. I don't have any of the Android TV hardware. So I'm testing in emulator. I was able to start Android Emulator for Android TV with Android 5.0. My game is…
14
votes
1 answer

How to implement paging in Leanback VerticalGridSupportFragment using Paging Library?

We are trying to implement paging in Leanback VerticalGridSupportFragment with Architecture Components Paging Library. Leanback on it's own doesn't have any sort of out-of-box compatibility with Paging Library so we extended it's ObjectAdapter class…
14
votes
1 answer

DIAL protocol for launching android application

I'm trying to get an Android TV app to launch with DIAL. I have the application installed on my Android TV as "com.test.example" I also have that path registered to the DIAL site, here:…
RyanInBinary
  • 1,533
  • 3
  • 19
  • 47
1
2 3
91 92