IPTVGreekcom είναι ένας από τους καλύτερους παρόχους IPTV στον κόσμο. IPTV με περισσότερα από 79.00 κανάλια από 43 χώρες και 9800 VOD με πολλές ...
My title is Casio I'm a developer relations below at Google I function typically with Android Television set and today we're going to speak about finest techniques for participating apps which happens to be type of like and gay embraces lots of stuff it's form of a generic title so to
narrow it down here's the things that We will discuss I will start off by declaring a little bit of the state of home and front room as we recognize right here Google then I'll go to speak about some Android TV Fundamental principles which a lot of significant significant
apps to missus and and and has some mistakes in there and no participating application and I received terrific an awesome participating app start out of having all of the Essentials suitable then we're transferring to talk a little bit with regard to the linkback library and one of the significant concerns that
everybody usually has that is how do I customise the Leanback library it doesn't suit always the what I need accurately am i able to modify it could I customise it spoiler notify the answer is mostly Sure and we're going to converse a little bit about that after which you can I'm likely
to speak about the OS integration they are going to look at how we are able to integrate with Android TVs homescreen to attribute our content material we are going to look at discoverability by lookup and interesting with the assistance so setting up that has a state of dwelling and family room for us at
Google so technological know-how has altered how we interact with the home listed here at Google we believe that the next wave the next step forward in technological know-how for the house will originate from the intersection of hardware program and artificial intelligence just one your house to not merely be smarter with your
home not only really should be extra valuable but most of us we would like are your private home to work for you and bringing alongside one another hardware computer software and synthetic intelligence to supply an unbelievable Spurs to our customers which obviously is anchored by the Google assistant the useful Google system that
brings collectively research that brings together media and many of the media points and most of the media Speak to factors at Google and when we're discussing media there isn't a superior spot to consume media and to observe media than the bigger monitor your home And so the Android TV is
at the center in the media during the Google assistant electrical power at your home you may have your clever mobile phone your intelligent car your Good speakers as well as Android Tv set brings anything collectively in a single area media games tunes and all those practical experience together into just one major screen in your
lounge Android Tv set seen a great deal of momentum recently six out of the top 6 out of ten major Smart Television set manufactures are shipping and delivery TVs with Android Television and more than 100 and forty fork out TV operators are shippi setup bins with android TV too this has
been an enormous maximize over the past several years which excellent momentum that we are observing on Android TV extends to builders at the same time we not long ago announced that We now have now around five,000 applications on Google Participate in for Android Television set above a thousand of them staying for from steaming
streaming content vendors so there is a great deal taking place Android Television set and at Google we are focusing many initiatives in Android Tv set so let us discuss a great making wonderful participating Android Television applications so to get rolling what will make an entry Television app or an Android app
and Android TV application thanks to course currently being Android indicates you can reuse your entire abilities being an Android developer to build an Android TV application but what causes it to be a Tv set app properly get started with the basic principles You should declare your features and I do know this
is actually essential but I want you to definitely correct to the touch on this due to the fact as I mentioned There are many of huge applications that skips or misses Many of these basics and no great partaking application performs in case you pass up the basics so obviously the 1st characteristic that
you need to declare is you don't strike my contact screen because the very last time I checked folks You should not go and touching their property display TVs their living room Television set so In case the detail their fingers are interact using a handheld remote control also You should declare you
use linkback this doesn't automatically consult with the hyperlink back again library website link back again is this generic phrase that we use to determine this working experience of viewing Television which differs from using a cellular unit as you're using it at a length inside of a hyperlink back again placement in the connection
back situation so You will need to declare that upcoming you have to declare your application banner just point I'm going to chat a little bit more details on method which is something which we normally have problems with And at last You should declare your Android Television intent which is not
the principle tent therefore you declare your Leanback launcher so Poona you're putting out with each other you declare the options that you just use you declare the banner and you simply declare your link back in intent just one two a few your options your banner within our website link back intent https://iptvgreek.com but I desire to
speak extra a bit more about the app banner by itself that's the banner when you ever made use of Android Tv set you know the way it seems to be but This is the issue in many a lot of circumstances you could possibly glimpse Incorrect and in lots of apps we have seen looking wrong among these kinds of illustrations is
once you offer a mobile icon in this article Android Television set app what happens is that the icon might be scaled and put inside the dark rectangle so it seems like this Odd mix of a sq. icon inside a rectangle spot this occurs when you offer a mobile icon 512 by
512 inside your lovely xhdpi folder so that's Improper will not try this also for those who offer any banner there is larger than three hundred 320 by a hundred and eighty would not make a difference through which folder you put it it's actually not likely to seem effectively this is not in this example We've a nine
and 16 by 540 pixel picture in the rest drawable folder it doesn't work if you place in a different spot so right here I have the exact same picture set inside the drawable way Television DPI also isn't going to seem appropriately again the way to get it done is strictly 300 320 by
one hundred eighty pixels in the rest drawable xhdpi folder this fashion your banner appears to be effectively and remembering that our banner is accustomed to check with your app representation but It is also utilized elsewhere like as an example while in the simple x roll so maybe nailing it down accurately is very important lastly if
you need your software to be printed for inside the Perform Shop for Android TV there is a Particular decide-in distribution that you have to check if you do not do this it is not about to go for the Engage in Retailer so in the Engage in console It's important to find
this distributor application on Android Television it isn't more than enough to point out it's actually not sufficient to indicate that you have a hyperlink back again launcher you actually have to seek out this distributor on Television set and Check out that box and The rationale for which is that there are a lot of plant many hybrid platforms
or multi-platform atmosphere progress environments that routinely says that all the things is enabled like a Leanback launcher such as but you might under no circumstances have really analyzed none on TV by making use of these these growth environment so that does not always imply it will work appropriately on a TV so This is why
we asked you to check that precisely checkbox very good to make sure that that these are definitely the fundamentals these are definitely the quite bare-bones you have to nail let's mention the Leanback library now not surprisingly the linkback library Is that this this list of widgets significant degree widgets that we provide
they verify to the materialized specs and they supply a great knowledge for making use of Television in a distance we have widgets for the home monitor which has for example rows plus a navigation drawer We have now widgets for written content aspects We've widgets to get a great deal of various conditions but
the most Repeated question that we hear regarding the Leanback library is nicely the widgets which you supply won't healthy a hundred p.c what you'll need so are there any methods to customize the Leanback library effectively the answer is yes there are mainly two approaches it is possible to go about
customizing the Leanback library sorry it is possible to just simply change the colors and Proportions values in your app otherwise you can offer custom presenters so let us discuss a bit about shades and dimensions if we go particularly if we look exclusively with the Look through fragment that's the 1
that is definitely utilized for several homescreen from your home display screen of principal apps which is the one that reveals up sidebar navigation and the rows of contents you'll find like Pretty much twenty Attributes only regarding the Browse fragment which you can modify inside your callers and inner Proportions values such things as
brown like padding like title stereos roll types and these applies also to your navigation tower to every of the person playing cards and so forth so far so by way of example can I Recurrent question can I make my navigation drawer shorter Sure you could you needn't create code
for that just by modifying the Marg's along with the margin pennies together with other Proportions you can do that Of course we must do a greater task at documenting these Homes occasionally they're not necessarily easy to discover However they exist and you may go a good distance just by
modifying the worth of those properties now in some cases that isn't adequate so the linkback library It truly is determined by MVP or Model Check out pattern which is probably the lots of mV regardless of what parents and many of People widgets they let you give a tailor made presenter I am not
planning to dwell into the small print about what makes what is the difference between MVP or MVC or mvvm but The truth is that on MVP your presenter acts as the glue among the product and the look at but it's also responsible for initiating or inflating in Android language the see
which suggests that by supplying a customized presenter you might be in fact in complete control of what you wish it to look like what you wish that widget to look like because you can provide a custom watch so let's Have a look at an case in point once more I'm going to make use of the
Look through fragment mainly because it's the one that's generally used as the key monitor of applications the Browse fragment it contains and it expects an array item adapter for true exhibit the person checklist rows and the individual list rows 1's a header peak along with a put up adapter etcetera and many others but
I'll give attention to the higher ident presenter which is the one which we could use to customise how the navigation drummer seems to be so one example is say I need to own my navigation drawer and I need to Display screen icons close to my text near my titles nicely
what you can do During this code is in Java what you are able to do is supply your custom made presenter In this instance I'm calling it the icon header product presenter extending house header presenter and you've got two of the appropriate a few different methods at bare minimal 3 various capabilities
on produce see holder on bind industry holder and possess unbind check out holder on create watch holder here inflate your format and again because this is a presenter you inflate structure if in the presenter that you are in full Charge of giving any look at that you might want on Chunk watch
holder you set the contents not to mention on bite you no cost the resources so let us Have a look suppose I want to do this icons I'm able to try this by delivering a custom made view by utilizing a linear layout and which includes not just a textual content view which is the
default but additionally a picture view then on by perspective holder again an instance on the view holder presenter as well as the header item by getting the hider item I'm able to call Qualities like get title and use those to fill my textual content look at label and icon and of course
on you override have unbind look at holder to totally free any sources that you have made use of these are the a few minimal ones that you have to overwrite but not surprisingly you will discover Many others In order for you for instance to customize how they experience how They give the impression of being how the person items seem
after they're chosen there is certainly one process that you can you could override for that again in black in back in your action you could set the header presenter selector by supplying an occasion of the custom presenter in my case I can not have their merchandise presenter this is an aged
example but why Do not you utilize it In either case since it's not pretty effectively-known and It can be yet again a very common issue great let us now take a look at Oprah OS integration there are four major things which your app needs to do to correctly integrate of your Android Tv set operational technique and
supply an interesting working experience integrative look for media playback controls as activated through the assistant not to mention the home display screen integration to Engage in subsequent and customized channels let us Look into each of 1 of these so media found why perfectly mainly because it will allow the users to discover information
by invoking playback from searches by voice well How would you get it done you make our application searchable through the use of a written content provider in the event the assistant performs question over the articles service provider it could get started taking part in back again applying intents let us Check out this sample code below nearer so
I'm producing my very own look for perform a written content supplier extending written content company these examples are in cuddling I have a produce the question functionality And that i really have to return a cursor how I'll do the research nicely that for ice you can do the look for any place you
want it is possible to look for area material that You may have downloaded with your application you'll be able to perform searches around the server whatsoever you do at the end you come back a matrix cursor as well as their procedure to Exhibit your search engine results inside every other search results now the factor is
Although you want you can do this lookup in your provide you wish to do it you would like to get it done rapidly for the reason that Google will their method will show an Ender android Television will exhibit there is certainly the final results as they seem so if every one of the other applications are
quicker than yours all in their icons all in their banners will show up very first than yours and that means you intend to make it more quickly following media controls why effectively because you wish to enable the consumer to control playback by using voice How will you get it done you integrate media sections
media classes to take care of the callbacks so everytime you make use of the user employs their distant to perform playback for the playback opinions things such as Engage in or pause and even smarter ones like skip to your preceding channel or to skip to past episodes or skip to following which may be
utilized by each online video and audio applications you can also do a thumbs up If you prefer that is a lesser-regarded feature and the best way you do that once again you offer your media session fallback by extending meters have to have a session compact callback and you can overwrite every one of these
capabilities Will not Perform on pause on cease on six you on skip to next on skip to previews and by Regulate override all of these controls and Management your own private player and by providing this callback towards your media session occasion your app now responds to your assistant playback controls
now we're going to go to talk about the integrations Along with the Android TVs residence monitor the most important a person bling becoming the Engage in following row mmm so if you don't know the Android Television interface It is manufactured of these rows the primary row is often a row of your
consumer favorites the customers favorite apps as well as the the incredibly initial row after the listing of the customers applications may be the Engage in up coming job and it is a purpose or even a channel as we contact it that aims to be this world-wide Area for the users material throughout unique apps so
The theory right here is the fact any any content material which the user is interested on or even the consumer interacted with but did not finished your application can press this written content to the plain X row so why you maintain your viewers engaged with content material and combat desire or intriguing or haven't concluded
looking at including appreciated movies or future episodes of a collection or a Motion picture that he has not finished How would you do this effectively you publish your enjoy following plan to Android access preview channel helper you won't need to boot or be worried about your content provider oneself and what
could it be properly the Android CBS Perform next row is up-to-date to reflect recent engagement and set applicable content material with the viewers fingertips s contents are included more mature contents move to the appropriate and sooner or later from the consumer never ever interacts Using these other contents These are removed from
the from their Engage in up coming position yet again let us Check out this code a bit nearer so Android X's view the subsequent application for what follows the Builder sample so create a builder you established the look at future kind you established a kind which could be a movie
or perhaps a series or tunes Then you definately supply your title and outline plus your poster art URI It is also crucial to set the final time of engagement because this picture is likely to be somewhat much