android-tv

Android RecognizerIntent Speech recognition returns RESULT_CLIENT_ERROR

送分小仙女□ 提交于 2020-01-17 12:38:28
问题 I have implemented search view using Leanback Search Fragment in Android TV App. It works fine for the keyboard input text. But the voice search returns RESULT_CLIENT_ERROR 99%. However the text appears in the edit text on the screen but does not return in onActivityResult. Once in a bluemoon I get RESULT_OK with correct data in the intent. Device: Nexus Player Even the default search works the same way most of the items. Hardly do i get the results via voice. (Search in home screen of nexus

Android TV Registration in Google Cast SDK Developer Console

℡╲_俬逩灬. 提交于 2020-01-17 04:42:06
问题 I am planning to add Google cast feature on my existing iOS and Android application streaming audio application. I don't have Chrome cast device. But i have Android TV(KDL-43W950C). Can i use my Android TV for developing Google-cast application? If it so, how to register Android TV in Google Cast Developer Console?. Android TV has the serial number of 7 digits, where as registration form expects 8-20 characters. Google Chrome cast application also does not detect the Android TV Google

How to set Title on Android TV Home Screen of the currently tuned and playing channel once in PiP

≡放荡痞女 提交于 2020-01-16 19:31:32
问题 We are implementing Picture in Picture feature for our tuned channels on Android P based TV platform. Once the channels are tuned and are playing when we push it in PiP, we see empty title screen on launcher as shown in the below screen. Implementation is based on this guide: https://developer.android.com/guide/topics/ui/picture-in-picture.html I tried referring the existing questions but since here the flow is via TIF so probably a different solution is required. Any idea how to set the

AlarmManager or Handler

别来无恙 提交于 2020-01-16 00:49:08
问题 I have specific case to ping my server every 10-60 minutes (it still depends) but only when app is opened. This feature is created to inform that session is still open where session is defined as period from app open to app close. I don't have to worry about process kill. What is better to use ? AlarmManager or Handler .postDelayed() ? The targeted platform is android tv so imagine the case is when watching film in context of my app for example. Personally I first thought to use AlarmManager

Dynamically add more cards in a list Row android TV leanback

余生长醉 提交于 2020-01-15 11:58:12
问题 I am working on a Android TV app for quite some time now and I have come far while working on it. I am trying to develop an app like popcorn time but it's for Google nexus TV box. The problem where I am stuck in, is really simple but even after a lot of effort I am still unable to figure out the solution. I am fetching the json data from my database which has all the movies details and links and this works perfectly fine. Over all app view Now those who have used the you tube app on Android

Admob for Android TV app

百般思念 提交于 2020-01-12 14:11:24
问题 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 dismiss an advertisement with the D-pad controller. Video ads must be dismissible within 30 seconds of their start time. Android TV does not provide a web browser. Your ads must not attempt to launch a web browser or redirect to the Google Play Store.

Detecting 4K UHD screens on Android

白昼怎懂夜的黑 提交于 2020-01-12 07:06:20
问题 I am trying to detect when a device is capable of outputting at 4K UHD (3840x2160) resolution. A number of devices such as the nVidia Shield TV and the Sony Xperia Z5 Premium will report that they are running at 1080p even though they are capable of UHD, because they default to 1080p output for non-video layouts. I need some way to detect if they are 4K capable to distinguish between them and non-4K devices like the Nexus Player. Here is the code I'm using to determine the current resolution:

Unable to scroll down in TV(EPG-GUIDE)Using TV Remote Down Button

霸气de小男生 提交于 2020-01-07 05:01:07
问题 1.I am Developing an android application as Electronic Program Guide(EPG) for set-top-box followed by this project https://github.com/codessentials/android-tv-epg." 2.I can able to navigate left to right,rigtht to left(Horizontal scroll) & able to see the focus also(Left & right Remote key navigation), 3.I can't navigate Top to Bottom & Bottom to Top,unable to scroll it & can't see the focus,that view fully opened, so focus went to down but i can't see that. 4.How to scroll as Top to buttom

Adding Multiple Presenters to ArrayObjectAdapter of Android Leanback

馋奶兔 提交于 2020-01-06 05:34:26
问题 I want to display two different types of cards in the same row (ListRow) . I tried to modify the Presenter class by adding viewType similar to dealing with displaying multiple row types in RecyclerVew but it did not work. I tried digging into the Presenter and ArrayObjectAdapter code but there is no obvious option to achieve this. If someone has done this then please point me in the right direction. 回答1: You can use ClassPresenterSelector to show different types of cards in the same row

Vertical list like android phones in android tv leanback

帅比萌擦擦* 提交于 2020-01-06 05:23:09
问题 I want to create a simple vertical list (single column in a row), which is only scrollable vertically not horizontally. How do i achieve this on android tv using leanback ? Refer below image for more clarification on ui requirement. I tried using VerticalSupportFragment, but a row item doesn't spans to a full width, tried changing styles and presenter also. Thanks in advance, is there any way to achieve this ? 回答1: If you use a VerticalGridSupportFragment you can set the number of columns