android-tv-best-practices-for-engaging-apps-android-dev-summit-19

android-tv-best-practices-for-engaging-apps-android-dev-summit-19

a0yhgvp511

IPTVGreekcom είναι ένας από τους καλύτερους παρόχους IPTV στον κόσμο. IPTV με περισσότερα από 79.00 κανάλια από 43 χώρες και 9800 VOD με πολλές ...

 

My identify is Casio I'm a developer relations right here at Google I operate mainly with Android Tv set and these days We'll discuss best methods for engaging applications that is type of like and gay embraces a lot of things It truly is style of a generic title so to

slim it down here's the things which We'll look at I will get started by declaring a little bit of the point out of property and front room as we understand listed here Google then I'll shift to discuss some Android TV Essentials which many huge significant

applications to missus and and and has some faults in there and no participating application And that i received great an excellent engaging application start of acquiring all the Fundamental principles proper then we are moving to talk a little bit about the linkback library and among the big inquiries that

Everyone constantly has which is how do I customize the Leanback library it would not suit always the what I would like specifically can I change it can I customize it spoiler warn the answer is mostly yes and We will speak a bit about that and then I'm heading

to take a look at the OS integration they are going to mention how we are able to combine with Android TVs homescreen to function our content material we're going to mention discoverability via search and engaging Along with the guidance so starting using a point out of residence and lounge for us at

Google so technology has adjusted how we interact with the home right here at Google we think that the following wave another step forward in know-how for the home will originate from the intersection of hardware computer software and synthetic intelligence a single your house to not just be smarter with your

property not just should be extra helpful but every one of us we want are your own home to work for you and bringing collectively hardware software and artificial intelligence to supply an unbelievable Spurs to our users which not surprisingly is anchored through the Google assistant the useful Google procedure that

brings with each other lookup that provides together media and each of the media details and most of the media Get in touch with points at Google and when we're discussing media there isn't a better destination to take in media and to watch media than the bigger display your property so the Android Television is

at the guts on the media during the Google assistant electricity in your own home you may have your good cell phone your good car your Smart speakers and also the Android TV provides everything together in a single place media games new music and all of those expertise together into one particular huge display screen in your

family room Android Tv set found loads of momentum not too long ago six outside of the very best six out of 10 best Intelligent Television manufactures are delivery TVs with Android Tv set and over 100 and forty shell out Television set operators are shippi setup bins with android TV in addition this has

been an enormous boost over the past couple of years and this wonderful momentum that we're seeing on Android Television set extends to developers in addition we a short while ago declared that we have now about 5,000 apps on Google Perform for Android Television set around a thousand of these staying for from steaming

streaming information suppliers so there is a whole lot taking place Android Television set and at Google we've been concentrating many attempts in Android Tv set so let's look at an awesome building wonderful engaging Android Tv set applications so to get rolling what helps make an entry TV application or an Android application

and Android Tv set application because of training course currently being Android usually means which you could reuse all your abilities being an Android developer to build an Android Tv set application but what can make it a Tv set application nicely start with the fundamentals You will need to declare your functions and I'm sure this

is basically essential but I want you to definitely accurate to touch on this because as I discussed There are plenty of massive apps that skips or misses Some Fundamental principles and no great partaking application works for those who miss out on the fundamentals so certainly the first feature that

you have to declare is you Do not strike my touch display screen because the very last time I checked people today Do not go and touching their household display TVs their living room TV so Should the matter their fingers are interact using a remote control also You need to declare that you simply

use linkback this doesn't automatically seek advice from the connection back again library url back again is this generic expression that we use to determine this working experience of watching Television which differs from employing a cell device since you're applying it at a distance in a link back again position in the backlink

back again scenario so you have to declare that up coming You need to declare your software banner just issue I'm going to converse a little bit more about method that's a thing that we normally have problems with And eventually You must declare your Android Television set intent which is not

the key tent so you declare your Leanback launcher so Poona you might be Placing out alongside one another you declare the attributes you use you declare the banner and you simply declare your connection back again in intent 1 two a few your options your banner inside our link again intent but I need to

chat far more a little bit more about the application banner itself that is the banner when you at any time utilized Android Tv set you understand how it looks but here's the factor in many a lot of circumstances you could appear Improper and in lots of apps we have seen on the lookout Incorrect certainly one of these types of examples is

if you offer a cell icon in this article Android Tv set app what comes about is that the icon might be scaled and set In the dark rectangle so it seems like this Odd combination of a square icon within a rectangle space this happens after you offer a cellular icon 512 by

512 as part of your cute xhdpi folder making sure that's wrong don't do this also in case you supply any banner There is certainly larger sized than 300 320 by 180 isn't going to issue where folder you place it it is not likely to seem the right way this is not in this example We now have a 9

and sixteen by 540 pixel picture in The remainder drawable folder it won't function if you place in a different put so in this article I have the exact image put while in the drawable way TV DPI also does not glance properly once again just how to do it is precisely three hundred 320 by

one hundred eighty pixels in the rest drawable xhdpi folder this way your banner appears properly and remembering that our banner is accustomed to question your application representation but it's also utilised somewhere else like one example is while in the simple x roll so maybe nailing it down correctly is critical finally if

you need your application to get released for inside the Participate in Retail outlet for Android TV There's a Specific decide-in distribution that you've got to check If you don't try this it is not planning to go for your Play Retail outlet so within your Engage in console You must uncover

this distributor application on Android Tv set it's not adequate to point out it's not enough to indicate you have a connection back launcher you actually have to uncover this distributor on Tv set and Test that box and The main reason for which is that there are numerous plant many hybrid platforms

or multi-System surroundings advancement environments that routinely claims that everything is enabled just like a Leanback launcher such as but you may perhaps never have essentially analyzed none on Television set by using these these growth natural environment so that does not always suggest it is going to perform properly with a TV so This is exactly why

we questioned you to examine that specially checkbox very good making sure that that they're the basic principles these are the really bare-bones you have to nail let us talk about the Leanback library now needless to say the linkback library Is that this this list of widgets significant level widgets that we offer

they ensure towards the materialized specs and they supply an excellent working experience for using Television set at a distance we have widgets for the home display screen which includes one example is rows as well as a navigation drawer we have widgets for written content specifics We now have widgets for any great deal of various cases but

by far the most Regular question that we hear in regards to the Leanback library is effectively the widgets that you just present will not match 100 p.c what you would like so are there any methods to personalize the Leanback library very well The solution is Of course you will find essentially two means you could go about

customizing the Leanback library sorry you may just basically alter the shades and dimensions values as part of your app or you can offer customized presenters so let's discuss a bit about hues and Proportions if we go precisely if we look specifically with the Browse fragment that's the 1

that is definitely useful for a lot of homescreen from your home display of major purposes and that is the one that displays up sidebar navigation as well as rows of contents you will discover like Just about 20 Qualities only with regard to the Look through fragment you can modify within your callers and internal dimensions values things such as

brown like padding like title stereos roll kinds and these applies also on the navigation tower to every of the person cards etc up to now so for example am i able to Repeated issue can I make my navigation drawer shorter Certainly you can you don't need to publish code

for that just by modifying the Marg's along with the margin pennies and other dimensions you can do that Of course we must do an even better job at documenting these Qualities from time to time they aren't necessarily uncomplicated to uncover but they exist and you will go a long way just by

modifying the value of such Qualities now occasionally that isn't sufficient Therefore the linkback library It is really determined by MVP or Design Check out pattern which is probably the many mV regardless of what mothers and fathers and plenty of of Those people widgets they let you supply a customized presenter I am not

going to dwell into the main points about what helps make what is the distinction between MVP or MVC or mvvm but The reality is that on MVP your presenter functions as the glue involving the model along with the watch but It is also accountable for initiating or inflating in Android language the check out

which suggests that by furnishing a tailor made presenter you happen to be really in complete Charge of what you would like it to appear to be what you wish that widget to appear like simply because you can offer a customized view so let us Have a look at an example again I'll make use of the

Search fragment mainly because it's the one that's largely made use of as the principle display screen of apps the Look through fragment it incorporates and it expects an array object adapter for true clearly show the person record rows and the person record rows a person's a header top along with a put up adapter and many others etcetera but

I'm going to give attention to the higher ident presenter and that is the one which we will use to customize how the navigation drummer seems to be so one example is say I would like to obtain my navigation drawer and I want to Screen icons close to my text near to my titles nicely

what you can do in this code is in Java what you are able to do is give your custom presenter In such a case I'm calling it the icon header item presenter extending property header presenter and you have two of the proper a few distinctive procedures at bare minimum amount three different capabilities

on build view holder on bind subject holder and very own unbind see holder on produce view holder here inflate your structure and yet again because it is a presenter you inflate format if inside the presenter that you are in full Charge of providing any watch that you would like on bite check out

holder you set the contents and naturally on Chunk you cost-free the assets so let us take a look suppose I would like to do this icons I'm able to do that by delivering a custom made view by utilizing a linear format and which include not just a text watch which can be the

default but in addition an image view then on by check out holder all over again an occasion in the view holder presenter as well as header item by receiving the hider merchandise I'm able to phone Qualities which include get title and use All those to fill my text view label and icon and naturally

on you override possess unbind look at holder to free of charge any resources you have made use of these are definitely the a few minimal types that you have to overwrite but naturally there are others If you would like by way of example to customize how they come to feel how They give the impression of being how the person products appear

once they're selected there's one approach that you could you could possibly override for that back in black in back again with your exercise you may established the header presenter selector by delivering an occasion of one's custom presenter in my circumstance I can not have their item presenter That is an outdated

illustration but why You should not you employ it In any event because it's not extremely effectively-recognized and It truly is once again a very common issue great let's now talk about Oprah OS integration you can find four big things that your app must do to appropriately combine from the Android Television operational technique and

provide an enticing expertise integrative search media playback controls as activated via the assistant not to mention the house display screen integration to Enjoy next and personalized channels let us Check out Every single of 1 of these so media discovered why nicely since it permits the consumers to find content material

by invoking playback from queries by voice properly How does one do it you make our app searchable by utilizing a written content provider when the assistant performs query within the content material company it could possibly commence enjoying back again working with intents let us Look into this sample code in this article nearer so

I'm generating my very own research perform a articles company extending written content service provider these examples are in cuddling I've a publish the question operate and I really have to return a cursor the way in which I'm going to do the research perfectly that for ice you are able to do the research any place you

want you are able to look for neighborhood articles that You could have downloaded in the application you may accomplish searches about the server whatever you do at the tip you come a matrix cursor and their program to Exhibit your search results inside any other search engine results now the detail is

While you'd like you can do this research with your provide you ought to do it you would like to get it done rapid since Google will their process will exhibit an Ender android TV will exhibit you can find the outcomes as they seem Therefore if each of the other apps are

more rapidly than yours all in their icons all of their banners will show up 1st than yours so that you want to make it more quickly up coming media controls why properly simply because you choose to enable the person to regulate playback by utilizing voice how do you do it you integrate media sections

media sessions to deal with the callbacks so whenever you make use of the user takes advantage of their distant to try and do playback towards the playback opinions things such as Participate in or pause or maybe smarter ones like skip on the earlier channel or to skip to earlier episodes or skip to following which can be

utilized by both of those movie and audio applications you can also do a thumbs up If you'd like that is a lesser-regarded element and the way you do this once more you supply your media session fallback by extending meters need a session compact callback and you may overwrite most of these

functions don't Perform on pause on quit on 6 you on skip to future on skip to previews and by Command override all of these controls and Handle your own player and by furnishing this callback in your media session instance your app now responds towards the assistant playback controls

now we're going to move to mention the integrations Using the Android TVs residence display screen An important just one bling getting the Perform next row mmm Therefore if you do not know the Android Tv set interface It is really designed of those rows the primary row is actually a row in the

user favorites the customers most loved applications and the the quite initial row once the list of the customers apps may be the play next function and it's a purpose or a channel as we call it that aims to get this worldwide Room with the buyers written content across different applications so

the idea below is any any written content that the person is interested on or perhaps the user interacted with but failed to finished your application can drive this information to your plain X row so why you keep your viewers engaged with information and battle desire or intriguing or have not finished

viewing including appreciated films or upcoming episodes of a series or simply a Motion picture https://iptvgreek.com that he has not completed How will you do this very well you publish your observe subsequent system to Android obtain preview channel helper you won't need to boot or worry about your written content service provider your self and what

could it be properly the Android CBS Enjoy future row is current to reflect the latest engagement and put related content material with the viewers fingertips s contents are added older contents transfer to the appropriate and at some time from the user under no circumstances interacts Using these other contents They're faraway from

the from their play up coming function yet again let's take a look at this code a bit nearer so Android X's enjoy the next software for what follows the Builder pattern so produce a builder you set the check out following sort you established a sort which might be a Film

or even a collection or tunes Then you really deliver your title and outline as well as your poster art URI It is also very important to set the last time of engagement for the reason that this image may be somewhat too far too far too tiny but in the event you Check out in case you consider the 2nd item

inside the Engage in upcoming row When an item is chosen if you provide the final engagement time it is going to Screen a little progress bar on the bottom on the information And so the person can see in which he left off so if it is a Film which the customers stopped during the

middle you could put it there and exhibit where the user stopped Then you certainly Make and you receive a preview channel helper therefore you get in touch with publish view next system with that application so a few out of 4 the final always essential the west integration that it must offer is Android

Tv set channel channels are lists are yet again rows you have on your own Android TV house display screen and if you build an Android Television set app you can have as a lot of channels as you would like but there's a person channel There exists set up by default all the other channels the

consumer needs to decide in to incorporate them to the house monitor but not less than 1 channel is usually installed by default and the way you make android Television set channels can be a wipe I'll show you in the moment so why effectively tralala written content ought to be recommended and

the android Tv set dwelling display the way you publish a preview channel and preview programs to android obtain preview channel support preview channel helper all over again you won't have to worry about manually making a content service provider so let us Consider The straightforward quote you can get a helper once more he

follows the buter pattern so you can established the Display screen name set the description established the intent or right you'll be able to If you prefer get a established an internal supplier ID This is certainly your own Koston ID you can established to retrieve afterwards a logo so you Make when

you put this your channel by utilizing the helper you get again a channel ID Android assigned by Android Television set and If you prefer You may also use a preview builder to make a software so these are generally the four integrations that I mentioned to have an enticing app that

interacts With all the OS properly which is all I've to suit your needs thanks


Report Page