android-tv

Android Gradle Manifest merger failed

China☆狼群 提交于 2019-12-18 08:52:10
问题 I use the leanback library to develop for Android TV. My app declare the min API to 16 however the leanback as a minimum API of 16. So as the documentation says I declared this in my manifest : <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" package="com.mypackage.package"> <uses-sdk tools:overrideLibrary="android.support.v17.leanback" /> However I still have the error : Error:(6, 5)

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

醉酒当歌 提交于 2019-12-17 17:31:59
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed last year . 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? 回答1: I'm imagining something like this: Create the horizontal RV When binding the

How to support dpad controls for RecyclerView

感情迁移 提交于 2019-12-14 00:19:04
问题 I am currently trying to port Android mobile app to Android TV. I have a RecyclerView that seems to be displaying correctly in my Android TV app. I am using linearLayout for my RecyclerView. But I don't seem to be able to navigate inside RecyclerView using dpad controls. Any ideas? Here is the concerned xml: <android.support.v7.widget.RecyclerView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/RecyclerView" android

Android TV published app not visible in sony bravia android tv

跟風遠走 提交于 2019-12-12 22:31:17
问题 I have developed an app using Leanback Library . The app is working fine on Sony Android TV . But when I have published the app successfully on play store then when i am searching app on my Sony Android TV store it is showing No Results Found message. Here is Manifest of my TV app. <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.test.app" android:versionCode="1" android:versionName="1.0"> <uses-sdk android:maxSdkVersion=

How to implement more than 2 level navigation in com.android.support:leanback-v17

若如初见. 提交于 2019-12-12 15:11:27
问题 In regular android application I can use navigation drawer for navigate between top level views (sections of app) What should be used in tv apps? I see only possibility for two level of content organizing Categories -> Movies But in our app we have several sections (Live channels, On demand Movies, Recorded shows etc) with categories in most of them. Is it possible using standard android.support.v17.leanback.app.BrowseFragment and android.support.v17.leanback.app.DetailsFragment? 回答1: In

How to connect android T.V emulator to internet?

允我心安 提交于 2019-12-12 13:29:48
问题 I am using android T.V emulator but the internet is not working. I use the api 23. is there other work around in order to connect the android T.V emulator to internet. Note: my laptop is connected via wifi. Thank you in advance. 回答1: This problem was solved. Please check updates. Google released a new update for API23_x86 and API23_arm emulators. 回答2: Look at this thread to clear things up. For now the only solution is to use an older Android version(API 22 and below) to make the emulator for

Is it possible to draw overlay over any screen using 3rd party app in android TV?

二次信任 提交于 2019-12-12 09:05:41
问题 I have a question related to android TV. We want to create an app for android TVs which can run as service and is able to put overlay on any live tv or any screen and is able to show some text/video. Is this possible to do on android tv with a 3rd party app. It may be a very basic question but sorry for my ignorance. Would appreciate if someone can answer me. If I know the answer, then I will try to research more to create the app. Over internet, I could not find any answer to my question.

Any way to make common APK for API-15+ on mobile and API-21+ on TV?

匆匆过客 提交于 2019-12-12 05:38:39
问题 I looked at the Google UniversalMusic Player code sample for making a common APK with a common codebase to support all device types from mobiles to TV, as given here: https://github.com/googlesamples/android-UniversalMusicPlayer My requirement is to have a single APK support different min API versions on mobile and TV - min API-15 for mobile and min API-21 for TV (since Android TV starts only from API-21) How could I do this with minimal code duplication (ie. if making a separate mobile and

how to speed up the forward/rewind process when button pressed continuously

牧云@^-^@ 提交于 2019-12-12 02:58:36
问题 I want to increase the forward/rewind speed if the button is pressed continuously. I created my customized media controller from here. What would be the good way to speed up the forward/rewind process? I got some idea form here. Finally I implemented it too but the touch event worked successfully in my emulator or and android mobile too but didn't worked for android stb. Other solutions rather than using it would be appreciated. 回答1: How about you monitor the MotionEvent.ACTION_DOWN and

Notification Won't Appear on Android TV

☆樱花仙子☆ 提交于 2019-12-11 11:52:23
问题 I am playing with notifications on Android TV. I have not been able to get a notification to appear on the screen though. I am using the Nexus player which is on Android 6.0. When I run this code on my phone, the notification appears. But on TV, the notification does not appear. Am I missing something? @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); showNotification(); } private void showNotification() {