android-tv

VerticalGridFragment Endless scroll

最后都变了- 提交于 2021-01-27 20:39:13
问题 I'm creating android tv app but I don't know how to implement endless scroll in Verticalgridfragment , i use ArrayObjectAdapter , can someone help me do that? 回答1: I'd love to give you a full answer with oodles of code samples but I'm not at my work computer. Basically you'll implement the onItemSelected listener in your Browse / RowsFragment (it should be something like setOnItemViewSelectedListener() from your fragment). Then you do a check to see if the currently selected element is within

How to convert my app to an Android TV app?

泪湿孤枕 提交于 2021-01-27 07:51:04
问题 I have a simple Android application with 2 views (screens). I'm trying to make my app working on Android TV as well. I don't know what am I doing wrong, but when I run my app on an emulator I don't see my app's logo. What is wrong in my manifest file: <?xml version="1" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="xxx.flagmaster"> <uses-feature android:name="android.software.leanback" android:required="false" /> <uses-feature android:name=

How to use 3rd party TvProvider objects in own app?

我们两清 提交于 2021-01-27 07:07:30
问题 Here we have a sample app, what registers a channel for Android TV, so these channels are provided on the home screen by the operating system. Assuming that content providers like Netflix, Prime etc. provide each a channel, how can I display these channels in my app? 回答1: Those TvProvider s are accessible by the Android system only. When you creating a channel, you need to register a provider for that channel in the system - that is what TvProvider s are for essentially. You hardly can

How to use 3rd party TvProvider objects in own app?

时光怂恿深爱的人放手 提交于 2021-01-27 07:06:09
问题 Here we have a sample app, what registers a channel for Android TV, so these channels are provided on the home screen by the operating system. Assuming that content providers like Netflix, Prime etc. provide each a channel, how can I display these channels in my app? 回答1: Those TvProvider s are accessible by the Android system only. When you creating a channel, you need to register a provider for that channel in the system - that is what TvProvider s are for essentially. You hardly can

How to access 3rd party TvProvider on rooted device?

你说的曾经没有我的故事 提交于 2021-01-07 01:29:15
问题 My question is a follow up to this question. Let's assume I have an Android Tv stick, I also am the vendor. There are 3rd party apps like Netflix, Prime, etc. I want to access the channels provided via TvProvider or ContentResolver . As pointed out in one comment: apps vendors signs with the same key as an AOSP itself placed them in a special folder - only vendors of devices can do it or you, but only on rooted devices How are my possibilities for the options above? 回答1: Using one of the

How to make TV item expandable when be selected, like homepage's recommendation?

南楼画角 提交于 2020-12-30 09:01:50
问题 In AndroidTV's homepage, when user selects a recommendation video, the item will expand itself and shows more information than the other unselect items. Screenshot is here: In my TV application, I extends the VerticalGridFragment as the GridFragment to show TV shows. And also extends the Presenter to set the item layout. However, when item is selected, the item only scale bigger, but not show more information just like homepage's recommendation. How can I get this effect in my TV application

How to make TV item expandable when be selected, like homepage's recommendation?

徘徊边缘 提交于 2020-12-30 08:58:51
问题 In AndroidTV's homepage, when user selects a recommendation video, the item will expand itself and shows more information than the other unselect items. Screenshot is here: In my TV application, I extends the VerticalGridFragment as the GridFragment to show TV shows. And also extends the Presenter to set the item layout. However, when item is selected, the item only scale bigger, but not show more information just like homepage's recommendation. How can I get this effect in my TV application

Multiple apk support for Android TV and Phone

北战南征 提交于 2020-12-30 06:47:46
问题 I have a single application in market which has minSDK version 9, and I have also developed a Android TV version of this application with same package name , but API levels are overlapping. So, my question is; how can I upload 2 different apk's (TV & Phone/Tablet) with same package name? The APK for the Android TV should be seen only TV's and Nexus Player etc. Other Apk must be seen for only phones and tablets at the same time. I did read all documentations about multiple APK support but when

Alternative for missing app bar in Android TV

时光怂恿深爱的人放手 提交于 2020-12-27 07:16:08
问题 I just notice that my Android app, when I run it on Android TV with leanback intent, that it doesn't show a sandwich button for the menu items. This is missing, and everthing else like the title: What is the suggested alternative? Is it possible to listen to a button on the remote control and make the menu items visible? 来源: https://stackoverflow.com/questions/65296436/alternative-for-missing-app-bar-in-android-tv

Alternative for missing app bar in Android TV

独自空忆成欢 提交于 2020-12-27 07:14:41
问题 I just notice that my Android app, when I run it on Android TV with leanback intent, that it doesn't show a sandwich button for the menu items. This is missing, and everthing else like the title: What is the suggested alternative? Is it possible to listen to a button on the remote control and make the menu items visible? 来源: https://stackoverflow.com/questions/65296436/alternative-for-missing-app-bar-in-android-tv