android-tv

How to set the Fire TV “icon” on home screen?

做~自己de王妃 提交于 2021-02-11 09:44:40
问题 I have a Fire TV app that will also be released on normal Android TV and one some TVs that have Android that isn't Android TV and possibly on tablets. So I've set my banner for Android TV and that is working fine, the icon works fine on other devices but the Fire TV shows the icon where I expect the banner to be shown. This is my application xml: <application android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:supportsRtl="true" android

How to set the Fire TV “icon” on home screen?

。_饼干妹妹 提交于 2021-02-11 09:44:25
问题 I have a Fire TV app that will also be released on normal Android TV and one some TVs that have Android that isn't Android TV and possibly on tablets. So I've set my banner for Android TV and that is working fine, the icon works fine on other devices but the Fire TV shows the icon where I expect the banner to be shown. This is my application xml: <application android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:supportsRtl="true" android

Failed to find provider in android TV Preferences fragment

萝らか妹 提交于 2021-02-10 14:51:51
问题 Getting Failed to find provider com.google.android.katniss.search.searchapi.VoiceInteractionProvider for user 0; expected to find a valid ContentProvider for this authority for tv Preference Fragment E/AndroidRuntime: FATAL EXCEPTION: main Process: com.omniwyse.tvprefdemo, PID: 2025 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.omniwyse.tvprefdemo/com.omniwyse.tvprefdemo.SettingActivity}: android.view.InflateException: Binary XML file line #18: Binary XML file line

Google Play warning about missing leanback intent

若如初见. 提交于 2021-02-06 12:31:34
问题 When updating our app on Google Play I get You opted-in to Android TV but your APK or Android App Bundle does not have the Leanback intent This is somewhat bizarre as we have all the required components in our manifest to support TV, namely: <uses-feature android:name="android.software.leanback" android:required="false" /> <uses-feature android:name="android.hardware.touchscreen" android:required="false" /> and <activity android:name=".MainActivity" android:configChanges="orientation" android

Google Play warning about missing leanback intent

半世苍凉 提交于 2021-02-06 12:30:51
问题 When updating our app on Google Play I get You opted-in to Android TV but your APK or Android App Bundle does not have the Leanback intent This is somewhat bizarre as we have all the required components in our manifest to support TV, namely: <uses-feature android:name="android.software.leanback" android:required="false" /> <uses-feature android:name="android.hardware.touchscreen" android:required="false" /> and <activity android:name=".MainActivity" android:configChanges="orientation" android

Google Play warning about missing leanback intent

风流意气都作罢 提交于 2021-02-06 12:29:28
问题 When updating our app on Google Play I get You opted-in to Android TV but your APK or Android App Bundle does not have the Leanback intent This is somewhat bizarre as we have all the required components in our manifest to support TV, namely: <uses-feature android:name="android.software.leanback" android:required="false" /> <uses-feature android:name="android.hardware.touchscreen" android:required="false" /> and <activity android:name=".MainActivity" android:configChanges="orientation" android

How to programmatically include the mouse cursor in android tv

こ雲淡風輕ζ 提交于 2021-01-29 13:33:46
问题 I use Webview, which loads random sites. For good navigation I need to turn on the mouse cursor, which will be controlled by D-pad, but I did not find information on how to do it, maybe someone can have developed such navigation, I will be grateful for any help. 回答1: Use pointer capture A view in your app can request pointer capture only when the view hierarchy that contains it has focus. For this reason, you should request pointer capture when there's a specific user action on the view, such

Android TV. Adding custom views to VerticalGridFragment

非 Y 不嫁゛ 提交于 2021-01-29 03:34:24
问题 I am building an Android TV app and want to add some views to VerticalGridFragment. Is that possible and how? I am using leanback library version 25.0.0. Thank you for all the answers. 回答1: The leanback-showcase example provided by the leanback team has a great example on how to do this. I highly recommend you clone that repo and play around in that project. You'll basically want to initialize an Adapter with a Presenter that knows how to present the views you'd like to display in your list.

Play Store support for Android TV on Android Studio

萝らか妹 提交于 2021-01-28 20:07:23
问题 I use Android Studio and I need an emulator with Play Store support to test the development. However, I could not see the emulator with Play Store support in the Device Manager section in Android Studio. Do I have to buy a physical Android TV device? Do you have a suggestion for this? Please. 回答1: When you open Android Virtual Device and click Create Virtual Device, select TV on the side and pick either 1080p or 720p. On the next screen, select Android Q but be sure it's the API level 29

AndroidTV - change color of rows header [BrowseFragment]

自古美人都是妖i 提交于 2021-01-27 22:08:34
问题 I found something similar in SO: android-tv Changing text color and font of browse fragment rows header Following topic answer I came up with this: <style name="CustomRowHeaderStyle" parent="Widget.Leanback.Row.Header"> <item name="android:textColor">@color/red</item> </style> But this changes not only text that appears above the rows, but also navigation drawer text. I would love to get answer for the first one (having different color for navigation drawer item headers). 回答1: if i understand