android-tv

Installing android mobile apps on android TV

ぃ、小莉子 提交于 2019-12-11 08:06:23
问题 Just a quick question for i can't find proper answer to. I have developed android app for tablet and Mobile device, is it possible to install this app on Android Smart TV? If yes than What issues i can possibly run into?pixels? image distortion? or will it run properly or not at all. Thanks. 回答1: Perhaps the single most important thing in your manifest would be <manifest> <uses-feature android:name="android.hardware.touchscreen" android:required="false" /> ... </manifest> to allow the APK to

Android Management API (COSU) on AndroidTV?

◇◆丶佛笑我妖孽 提交于 2019-12-11 06:39:44
问题 Android Management APIs are supposed to be "compatible with any device running Android 5.1 or above that has Google Play installed." I really want that to be true, but am having trouble with Android TVs. (Specifically, a NexBox A95x and a TX3mini I'm testing with.) My stumbling point is how to enter the enrollment token into the device when provisioning it? I had no problem with a Samsung tablet. But, the Android TVs don't use the same startup wizard after hardware reset, so there doesn't

The last element in the row BrowseFragment

醉酒当歌 提交于 2019-12-11 05:43:57
问题 I have a Fragment: public class FilmFragment extends BrowseFragment implements LoaderManager.LoaderCallbacks<Object> In BrowseFragment I add several rows with items: private void loadRubricsFilms(List<Rubric> mRubrics, List<Film> mFilms) { int j = 0; for (Rubric mRubric : mRubrics) { ArrayObjectAdapter listRowAdapter = new ArrayObjectAdapter(mCardPresenter); for (Film mFilm : mFilms) { if (mFilm.getRubric() == mRubric.getId()) { listRowAdapter.add(mFilm); } } HeaderItem header = new

Content provider query() not being called (Android TV)

…衆ロ難τιáo~ 提交于 2019-12-10 23:44:35
问题 I'm trying to include my app into the Android TV global search, according to the documentation I have to create the following: ContentProvider Searchable.xml And of course include them into the manifest. So that's what I did, my contentprovider is extemely simple. It doesn't return any data, but when it gets the query() call it will print some lines in the log, which it has not done yet. public class VideoContentProvider extends ContentProvider { private static String TAG =

Android TV Play Video from URL

ε祈祈猫儿з 提交于 2019-12-10 18:41:36
问题 I would like to play a MP4 video from a URL in my Android TV app. I couldn't find an example in the Sample code (https://github.com/googlesamples/androidtv-Leanback). Does anyone know how to do that? Do I need to create my own Activity or is there a standard one in the leanback support library? 回答1: The androidtv-Leanback example already includes video playback . If you take a look at the PlaybackOverlayActivity, you will see that the VideoView class is used to play sample videos (you can

Adding ProgressBar to DetailsOverviewRow on Android TV

痴心易碎 提交于 2019-12-10 18:15:51
问题 I'm trying to create a slightly modified version of the android.support.v17.leanback.widget.DetailsOverviewRow for an Android TV app. The layout I'm trying to accomplish is roughly the same as Google's default version, but with the addition of a progress bar above the actions panel. What I have now looks like this: Current Version What I want to create is something roughly like this: Goal Version I would like to add this in dynamically without having to create an entirely new layout from

Android Tv - Now playing card icon

只谈情不闲聊 提交于 2019-12-10 09:51:01
问题 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

Leanback DetailFragment FullWidthDetailsOverviewRowPresenter customization

时光毁灭记忆、已成空白 提交于 2019-12-08 06:13:19
问题 I want to customize the FullWidthDetailsOverviewRowPresenter in the Leanback DetailFragment . Three things I want to accomplish are: Getting the Action s from top to below of the overview. Reducing the height of the overview so that it the related movies can be seen without scrolling down. The background image and the space it occupies at the top of the overview should be gone. The screen should start like the one above. The end result should be like this: I already know how to modify inside

Leanback DetailFragment FullWidthDetailsOverviewRowPresenter customization

a 夏天 提交于 2019-12-07 17:11:26
I want to customize the FullWidthDetailsOverviewRowPresenter in the Leanback DetailFragment . Three things I want to accomplish are: Getting the Action s from top to below of the overview. Reducing the height of the overview so that it the related movies can be seen without scrolling down. The background image and the space it occupies at the top of the overview should be gone. The screen should start like the one above. The end result should be like this: I already know how to modify inside the overview. How should I modify outside of it? Because you are moving around the key views of this

How to start developing for Amazon Fire TV?

ぐ巨炮叔叔 提交于 2019-12-07 11:56:55
问题 I was requested to develop an Amazon Fire TV app, but I find difficult to understand the steps required to get on track. As specified by the Amazon documentation, the previously available Fire TV SDK add-on is now deprecated, and they suggest to just use the Android v17 Leanback Library. To date, I do not have (yet) a Fire TV, and the official documentation is very poor and rather confused; I'm not able – then – to understand whether "pure" Android TV apps are fully compatible with Fire OS 5,