Skip to main contentdfsdf

Home/ j1upflt146's Library/ Notes/ Android TV: Best Practices for Engaging Apps (Android Dev Summit '19)

Android TV: Best Practices for Engaging Apps (Android Dev Summit '19)

from web site

 

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

 

 

 

 

My identify is Casio I'm a developer relations in this article at Google I do the job generally with Android Television set and now We'll look at best tactics for partaking apps which is style of like and gay embraces loads of things It really is form of a generic title so to

slim it down This is the things that we're going to take a look at I'll begin by indicating a little bit of the point out of residence and family room as we fully grasp here Google then I'll transfer to mention some Android Tv set Basic principles which quite a few huge main

applications to missus and and and it has some mistakes in there and no participating application And that i bought terrific a fantastic participating app start of getting most of the Essentials suitable then we are moving to talk a bit with regards to the linkback library and among the main concerns that

everybody normally has which can be how can I personalize the Leanback library it isn't going to fit automatically the what I want exactly can I change it could I personalize it spoiler inform The solution is generally Sure and we're going to communicate a little bit about that and afterwards I am going

to talk about the OS integration they are going to mention how we could integrate with Android TVs homescreen to attribute our articles we are going to discuss discoverability by lookup and interesting with the help so commencing with a condition of household and family room for us at

Google so technology has transformed how we communicate with the house right here at Google we feel that the subsequent wave another breakthrough in technological know-how for the house will originate from the intersection of hardware program and artificial intelligence one particular your own home to not simply be smarter along with your

house not simply needs to be additional valuable but most of us we want are your own home to be just right for you and bringing jointly components software program and artificial intelligence to offer an unbelievable Spurs to our people which needless to say is anchored by the Google assistant the useful Google procedure that

provides collectively search that delivers jointly media and many of the media points and most of the media Get hold of details at Google and when we're talking about media there's no better location to take in media and to watch media than the bigger display your home And so the Android Television is

at the guts on the media in the Google assistant energy at your home you can have your sensible telephone your sensible automobile your Wise speakers along with the Android TV delivers everything alongside one another in a single put media game titles music and all those experience alongside one another into a single large monitor in your

front room Android Television seen loads of momentum not long ago 6 from the top 6 away from 10 major Sensible TV manufactures are transport TVs with Android TV and around 100 and forty pay back TV operators are shippi create packing containers with android TV at the same time this has

been a massive improve in the last couple of years which good momentum that we've been seeing on Android Television extends to developers in addition we not long ago introduced that We've got now in excess of five,000 applications on Google Play for Android TV more than a thousand of these remaining for from steaming

streaming material providers so there is a large amount going on Android Television set and at Google we're concentrating many endeavours in Android TV so let us speak about a terrific making terrific participating Android TV applications so to get rolling what helps make an entry Television app or an Android application

and Android Tv set app thanks to program becoming Android indicates which you could reuse your whole techniques being an Android developer to build an Android Tv set application but what can make it a Tv set application very well get started with the fundamentals you have to declare your characteristics and I'm sure this

is really essential but I want you to definitely genuine to the touch on this due to the fact as I mentioned There are plenty of massive applications that skips or misses Some Fundamentals and no wonderful partaking app operates in case you skip the fundamentals so certainly the main aspect that

you must declare is that you Will not strike my contact monitor as the last time I checked people don't go and touching their household display TVs their living room Television set so In the event the issue their fingers are interact utilizing a remote control also You will need to declare that you

use linkback this does not essentially check with the backlink again library hyperlink again is this generic time period that we use to outline this encounter of watching TV which is different from employing a cell gadget since you're working with it at a length inside of a connection again placement inside a backlink

back situation so you have to declare that upcoming you have to declare your application banner just issue I'm going to converse a little bit more details on way that's something that we often have problems with And at last It's important to declare your Android Tv set intent which is not

the most crucial tent so that you declare your Leanback launcher so Poona you are putting out together you declare the characteristics which you use you declare the banner and also you declare your connection again in intent 1 two three your capabilities your banner within our backlink back intent but I would like to

converse more a bit more about the application banner alone that is the banner should you at any time used Android Television set you know how it appears to be like but Here is the detail in several lots of cases you would possibly seem Erroneous and in lots of applications we have seen hunting Incorrect amongst these types of examples is

after you supply a cellular icon right here Android Television application what transpires would be that the icon will probably be scaled and put inside the darkish rectangle so it seems like this Unusual mixture of a square icon inside a rectangle area this takes place whenever you supply a cell icon 512 by

512 with your lovely xhdpi folder to ensure's wrong don't do this also when you supply any banner There exists larger than 300 320 by 180 won't make any difference during which folder you set it it isn't likely to appear correctly this is not in this instance We now have a nine

and sixteen by 540 pixel image in the rest drawable folder it will not perform if you put in a distinct area so here I have the similar impression place inside the drawable way Television DPI also doesn't glimpse the right way once more the way in which to get it done is strictly three hundred 320 by

one hundred eighty pixels in the rest drawable xhdpi folder by doing this your banner appears to be accurately and remembering that our banner is utilized to inquire your app illustration but it's also applied elsewhere like for example inside the plain x roll so it's possible nailing it down accurately is vital ultimately if

you'd like your software to be released for within the Participate in Retailer for Android TV There's a Exclusive choose-in distribution that you've to check if you do not do this it is not gonna go for your Play Retail outlet so as part of your Enjoy console You should find

this distributor app on Android Television set it isn't sufficient to indicate it's actually not more than enough to point out that you've got a hyperlink again launcher you actually have to seek out this distributor on Television and Look at that box and the reason for that is there are many plant a lot of hybrid platforms

or multi-platform environment advancement environments that automatically claims that everything is enabled similar to a Leanback launcher by way of example but you could under no circumstances have in fact tested none on Tv set by using these these improvement atmosphere so that does not necessarily suggest it'll do the job accurately over a TV so That is why

we asked you to examine that particularly checkbox excellent so that that these are typically the basic principles these are typically the really bare-bones you have to nail let's mention the Leanback library now obviously the linkback library Is that this this list of widgets high level widgets that we provide

they ensure on the materialized specs and they supply a terrific expertise for using Tv set in a length We've got widgets for the house display screen which is made up of as an example rows along with a navigation drawer We have now widgets for articles details We've got widgets to get a great deal of different predicaments but

essentially the most Regular query that we hear with regards to the Leanback library is effectively the widgets that you just present will not in shape a hundred p.c what you may need so are there any solutions to personalize the Leanback library effectively the answer is Of course you'll find in essence two approaches you are able to go about

customizing the Leanback library sorry you may just merely alter the colours and dimensions values in your application otherwise you can offer custom presenters so let us converse a little bit about colors and dimensions if we go specifically if we glance specifically on the Search fragment which happens to be the one

which is employed for quite a few homescreen from home monitor of major programs that's the one which exhibits up sidebar navigation and also the rows of contents you will find like Practically twenty properties only regarding the Browse fragment which you could modify inside your callers and inner Proportions values things like

brown like padding like title stereos roll styles and these applies also to your navigation tower to every of the individual cards and so on to this point so as an example can I Recurrent query am i able to make my navigation drawer shorter Certainly you are able to you need not create code

for that just by changing the Marg's as well as margin pennies as well as other dimensions you can do that Sure we really need to do a far better career at documenting these Qualities in some cases they aren't necessarily quick to locate Nonetheless they exist and you may go a long way just by

modifying the worth of these Homes now sometimes that isn't sufficient Hence the linkback library It truly is based on MVP or Model Perspective sample which is one of the lots of mV whichever moms and dads and plenty of of Individuals widgets they assist you to supply a tailor made presenter I am not

going to dwell into the small print about what would make what's the difference iptvgreek.com/iptv-restream/ between MVP or MVC or mvvm but The truth is that on MVP your presenter acts because the glue involving the model as well as the look at but It is also liable for initiating or inflating in Android language the watch

which suggests that by offering a tailor made presenter you happen to be essentially in total control of what you want it to appear to be what you want that widget to appear to be simply because you can provide a custom made watch so let's take a look at an instance all over again I'll utilize the

Look through fragment since it's the one that's mainly utilized as the most crucial display of applications the Search fragment it includes and it expects an array object adapter for true show the individual list rows and the person listing rows one's a header peak in addition to a put up adapter etcetera etcetera but

I'm going to deal with the upper ident presenter and that is the one that we can use to personalize how the navigation drummer appears so one example is say I would like to acquire my navigation drawer And that i want to Display screen icons near to my text near to my titles very well

what you can do On this code is in Java what you are able to do is give your custom presenter In this instance I'm contacting it the icon header item presenter extending residence header presenter and you have two of the correct three distinct methods at bare bare minimum a few distinct features

on create check out holder on bind discipline holder and own unbind see holder on generate view holder right here inflate your format and all over again for the reason that this is a presenter you inflate format if within the presenter you are in total Charge of supplying any look at that you might want on bite check out

holder you set the contents not to mention on Chunk you absolutely free the sources so let's take a look suppose I would like To accomplish this icons I can do that by furnishing a customized check out by making use of a linear layout and which includes not only a text view which happens to be the

default and also an image see then on by watch holder once more an occasion from the look at holder presenter and also the header item by obtaining the hider item I am able to call Homes like get title and use These to fill my textual content perspective label and icon not to mention

on you override very own unbind watch holder to free any methods you have applied they are the three least types you have to overwrite but needless to say you'll find Some others In order for you one example is to customize how they experience how They appear how the individual merchandise search

when they're chosen you can find one particular technique which you can you could override for that back in black in again within your activity you can set the header presenter selector by offering an instance of your custom made presenter in my case I am unable to have their item presenter That is an outdated

illustration but why Will not you employ it In either case mainly because it's not really effectively-recognized and it's all over again a very common question fantastic let's now look at Oprah OS integration you will find four important things that your application ought to do to effectively integrate in the Android Television operational method and

supply an enticing knowledge integrative search media playback controls as activated from the assistant not to mention the house display integration to play subsequent and custom channels let us Look into Every single of 1 of those so media identified why nicely mainly because it enables the people to find out articles

by invoking playback from searches by voice very well how do you get it done you make our application searchable by making use of a content supplier when the assistant performs question within the content company it could possibly get started enjoying back utilizing intents let's Check out this sample code right here closer so

I am making my very own look for carry out a content service provider extending material provider these illustrations are in cuddling I've a create the query operate and I should return a cursor just how I will do the look for perfectly that for ice you can do the look for anywhere you

want it is possible to check for community material that You could have downloaded with your application you'll be able to complete searches on the server whatever you are doing at the end you come back a matrix cursor as well as their system to Screen your search engine results within just another search results now the factor is

Although you need you can do this lookup in your provide you would like to get it done you ought to get it done fast because Google will their process will present an Ender android Tv set will display you will find the outcomes as they appear so if all the other apps are

quicker than yours all of their icons all in their banners will appear to start with than yours this means you intend to make it more rapidly next media controls why nicely because you choose to allow the user to control playback by using voice How will you get it done you integrate media sections

media periods to handle the callbacks so when you utilize the user utilizes their distant to complete playback for the playback feedback such things as Engage in or pause or maybe smarter types like skip to the former channel or to skip to previous episodes or skip to next that may be

used by both equally video clip and audio apps you can even do a thumbs up If you need and that is a lesser-recognised element and just how you do this all over again you give your media session fallback by extending meters require a session compact callback and you may overwrite every one of these

features Never Participate in on pause on end on 6 you on skip to future on skip to previews and by Regulate override every one of these controls and Manage your very own player and by delivering this callback towards your media session occasion your application now responds to the assistant playback controls

now we are going to move to speak about the integrations with the Android TVs dwelling display screen An important just one bling being the play up coming row mmm so if you do not know the Android Television interface It really is made of these rows the primary row is actually a row in the

user favorites the end users favourite apps as well as the incredibly to start with row once the list of the customers apps is definitely the Perform following position and it's a role or perhaps a channel as we connect with it that aims to be this world wide space to the customers material across unique applications so

The concept listed here is the fact that any any content material the user is fascinated on or perhaps the person interacted with but didn't finished your app can thrust this information on the simple X row so why you keep your viewers engaged with material and struggle curiosity or appealing or haven't concluded

watching for instance favored video clips or next episodes of a series or simply a Film that he has not finished How will you try this perfectly you publish your enjoy following program to Android entry preview channel helper you don't have to boot or concern yourself with your content provider by yourself and what

could it be well the Android CBS Engage in upcoming row is updated to reflect modern engagement and place relevant content material on the viewers fingertips s contents are additional more mature contents shift to the best and eventually on the consumer never interacts Using these other contents They're faraway from

the from their play future job once more let us Consider this code a bit nearer so Android X's observe another application for what follows the Builder pattern so create a builder you set the look at up coming style you established a sort which could possibly be a movie

or even a series or tunes Then you definitely give your title and outline plus your poster art URI it's also very important to set the last time of engagement

j1upflt146

Saved by j1upflt146

on Jun 09, 20