android-tv

AndroidTV Missing DPad functionality

风格不统一 提交于 2019-12-07 07:54:53
问题 My app is fully usable and navigatable on AndroidTV using the DPad. Well, it certainly is on MY AndroidTV, as well as AVD. However, Google keeps on rejecting my appeal to have it marked as AndroidTV capable. There is no feedback, other than Missing DPad functionality Your app requires user interaction for menus or app navigation. Please make sure that all menus and app navigation are fully functional using a DPad. Please refer to our DPAD Control and Hardware Declaration documentation. Do you

Is it possible to use Google Maps Geolocation API for Android Tv?

风流意气都作罢 提交于 2019-12-06 13:33:47
问题 I was created one application for android TV which is already in Google Play store and works fine. Now my new requirement is to use the Google Maps Geolocation API in Android TV so I was refereed this link but no luck. So my question is that Is it possible to use Google Maps Geolocation API in Android TV? 回答1: After many research finally I got the answer.Yes it is possible to use Google Maps Geolocation API in Android TV but with some limitation.As per the documentation given by the The

Android Tv - Now playing card icon

ぐ巨炮叔叔 提交于 2019-12-06 00:48:29
I am currently working on a android tv app but cant figure out how to change the icon for the now playing card that appears when i navigate away from the app whilst playing a video. This link show that i need to set MediaMetadata.METADATA_KEY_DISPLAY_ICON_URI with a uri formatted string but i either cant get the string formatted correctly or it does not work for some other reason. currently i have this string - "android.resource://"+ getPackageName() + "/drawable/app_icon_new" full extract final MediaMetadata.Builder metadataBuilder = new MediaMetadata.Builder(); String title = video.getArtist

Implementing a File Dialog in Android TV Leanback

若如初见. 提交于 2019-12-05 20:40:57
问题 I have a dirPath String variable that I want to be able to change to a directory of my choice for an Android TV app. I find the Leanback framework's slideshow-like interface a little cumbersome for subtler actions but I would like to stick to it when I can as I'm a complete beginner on Android and java in general. So, trying to stick to best practices, I would like the user to be able to change dirPath to point to a directory of their choosing ( dirPath is used as a variable to scan for music

AndroidTV Missing DPad functionality

守給你的承諾、 提交于 2019-12-05 19:45:23
My app is fully usable and navigatable on AndroidTV using the DPad. Well, it certainly is on MY AndroidTV, as well as AVD. However, Google keeps on rejecting my appeal to have it marked as AndroidTV capable. There is no feedback, other than Missing DPad functionality Your app requires user interaction for menus or app navigation. Please make sure that all menus and app navigation are fully functional using a DPad. Please refer to our DPAD Control and Hardware Declaration documentation. Do you know if they actually test these apps, or do they just look for certain code patterns? The message

Leanback for Android TV : Unsetting Video Title Increases Spacing between Rows

怎甘沉沦 提交于 2019-12-05 18:35:57
The PlaybackOverlayFragment of the sample app uses the PlaybackControlsGlue to set up playback controls based on the data model. This is the look when using the standard glue: My problem is that I don't want the title/subtitle text to appear above the main player controls bar - we want them at the top left of the player screen instead. Therefore, to disable the showing of title/subtitle, I override createControlsRowAndPresenter() of the glue and use the empty-args constructor of PlaybackControlsRowPresenter instead: @Override public PlaybackControlsRowPresenter createControlsRowAndPresenter()

Android TV: VerticalGridFragment shadow dimension and color

ⅰ亾dé卋堺 提交于 2019-12-05 18:33:12
I'm working on an Android TV application but I'm not quite happy with the standard shadow rendered by the VerticalGridFragment , I'd like to have it smaller and a bit less darker. I've searched through the code but I didn't find any full working solution. In my VerticalGridPresenter subclass, the only method I can override is createShadowOverlayOptions but I can't get the result I want. The only workaround I came up with is to define the following dimensions, so that the ones declared in the Support Library are overridden: <dimen name="lb_material_shadow_details_z">3dp</dimen> <dimen name="lb

Movie Deeplink for Netflix Android TV app (com.netflix.ninja)

孤者浪人 提交于 2019-12-05 07:20:41
问题 I have seen solutions on how to do movie deeplinking for Netflix for the mobile Netflix app, but for the Android TV version of the app those same solutions don't seem to be working. I have tried using an Intent with action.VIEW and passing the normal Netflix URL such as: http://www.netflix.com/watch/{movieId} or with the nflx:// protocol. For the android TV app only the nflx:// protocol seems to do anything where it opens the app and then it just stays at the main menu instead of playing the

Is it possible to use Google Maps Geolocation API for Android Tv?

假装没事ソ 提交于 2019-12-04 19:54:27
I was created one application for android TV which is already in Google Play store and works fine. Now my new requirement is to use the Google Maps Geolocation API in Android TV so I was refereed this link but no luck. So my question is that Is it possible to use Google Maps Geolocation API in Android TV? After many research finally I got the answer.Yes it is possible to use Google Maps Geolocation API in Android TV but with some limitation.As per the documentation given by the The Google Maps Geolocation API their are mainly Two way to achieve this 1) Using Cell tower. 2) Using WiFi Access

Making AndroidTV app workable on FireTV

拟墨画扇 提交于 2019-12-04 08:49:00
I have an android tv app using a leanback library that I want to publish to amazon tv store also. I know that we can use leanback library for fire tv as per this link using a standard LAUNCHER . However I am not sure about a few things: Recommendations Android TV display content recommendations in the first row of the TV home screen Content recommendations appear as the first row of the TV home screen after the first use of the device For this we need to create a recommendation service and build recommendations in the android tv app. Does FireTV also show recommendations and requires a