Loading...
Home
  • Tech Blogs
  • Videos
  • Conferences
    • Droidcon News
    • Upcoming Conferences
    • Become a Partner
    • Past Events
    • Keep Me Informed
    • Diversity Scholarships
  • Community
    • droidcon Team
    • How to Hold a Droidcon
  • Android Careers
Sign In

Global CSS

droidcon News
 

droidcon Berlin 2019

Share
Tweet

 

Embrace the WorkManager ​
By
Pietro Maggi, Android Developer Advocate
droidcon Berlin 2019
After all of 2018 spent as alpha and beta, WorkManager graduated in 2019 to its first stable release and it is now the recommended solution for scheduling and executing deferrable background tasks in Android. In this talk we’ll quickly look into which use cases are a good fit for WorkManager, and which are better handled by different tools/APIs. Then we will jump into the API itself covering the different options available, from the simple Worker class to the newer CoroutineWorker. All this with an eye on how you can (and should) test your Workers and how you can implement some of the few missing features that are not yet covered by WorkManager out of the box. With this talk you’ll learn: * When to use (and when not) WorkManager * Which Worker class to use for your particular use case * How to test your Worker classes * How to customize WorkManager configuration * How to use Dagger2 with WorkManager
Transcript
English
00:10
everybody am pietro maggi
00:14
android l'operaio
00:17
ma i tweet cover di different o peak è
00:19
un one of the topics i'd like andai
00:22
cover e lotti work manager tethys e jeff
00:25
buckley parte dei to talk about work
00:29
manager su wii just the forty five
00:33
minutes world manager crono vertime 28
00:38
funzionali t and a very much as possible
00:42
to the show mi vedete è di and i'm not
00:45
going to be able to cover all the topics
00:47
this is my plein air one to start curili
00:51
from the basics to understand what is
00:53
work manager è un when it's good options
00:56
for de canio problems and we are going
00:59
to cover some of the classic that we
01:03
have inside work manager how to use them
01:05
and what are the difference which one of
01:08
these worker classes to handle restato
01:12
satu che the status of your work and
01:16
start in tubi e look into the beat of
01:19
the most interesting staff al to cancel
01:23
your work al tuo handle desktop gis of
01:26
your work out to handle unique work it
01:29
something only once ora di sciortino
01:33
tech duplicati your work execution
01:36
covering a bit of the periodico work
01:39
what are the di friends with the normal
01:42
workers end è noto che i compiti motto
01:47
che abita bot testing software going to
01:49
see what are the hell per classes
01:52
network manager makes a vele ball to
01:54
make easy to test your workers e last
01:58
but not least everything else is going
02:02
to be cover e will the standard
02:04
configuration and work manager but you
02:06
can change and you can customize work
02:09
manager and disease and special interest
02:11
in if you want to some dependency
02:14
injection wip sound like jagger csx part
02:19
of that work manager jetpack proprio di
02:23
everybody knows what is he is as to fly
02:26
vries google
02:28
m chiave le ball to make it axel e rete
02:31
debolmente eliminate boilerplate code in
02:34
bild apple.it robusta application ok
02:37
marketing il set of categorie d'argent
02:41
fondation some architecture that is the
02:44
core based on a jet bachis acquistate
02:47
we've architecture componente and this
02:50
is now e categoria inside jetpack
02:52
behavior vista flight camera ex leader
02:55
twixt now and while elements work
03:00
manager gli sport of the architecture
03:02
components and easy sveli jetpack forme
03:06
iss e cengio filosofi google inviando
03:10
android è veramente di cosa androidi
03:13
stenia oltre è un restart e uil
03:16
tallinn to people ok lizard e ep iphone
03:18
android uk and water vajont isar dei
03:21
piani tipo star di the ok a snai sbat
03:24
food ma in tutta la swift e rise better
03:28
way to use di spa harrison overtime
03:30
wista network this architecture
03:32
component we see you can use poteva
03:35
l'architetto one but if you want you
03:37
some phelipe viewmodel quanti news live
03:40
d'età all in this case work manager il
03:42
sunshine that we make us open source des
03:46
rusconi che implementi or on line race
03:49
in the same way e di sarah belbo alla
03:52
porta ed è un we are working to make
03:55
them the best possible libraries so what
03:58
is work manager work manager it e labbra
04:03
di to handle the fur hubble work that
04:05
can be run in the background de fer
04:08
hubble means that he doesn't in sturani
04:10
immediately somethin detta forse
04:12
constraints because of the battery
04:15
optimization nord per t system is going
04:17
to run in the feature pack what is
04:19
important is that we garantite this work
04:23
is going to be execute e renderci chan
04:25
these are really the two kipoint
04:27
something that aiutante expect that is
04:29
going to run immediately e nissan thing
04:32
that it's important to wake si chiude il
04:35
fiuto interdis turek wire men's da
04:37
appropriati a solution lecce
04:41
questo non so immagine finitura natas x
04:44
files question is this tasca su finish
04:47
di così fiction film the time executing
04:49
mai application and the user exit
04:52
application and stop di execution of
04:55
this task force tra apple corps thing is
04:60
running back grande of my application no
05:02
b day and il something i file close my
05:06
passion hiking clean and have to
05:14
garantire a thies con il tasto finisce
05:16
delle questioni
05:17
il def airball this means due anni to
05:20
execute it right now di così faini to
05:23
execute i try now and is it has to
05:26
finish prove the best option in studio
05:28
sun finanche foreground service giorno
05:30
ti find the user the sun fini traning
05:32
france application garanti that is
05:35
running è speciali ed è particolarmente
05:39
e fissano i fitz befera ball you can use
05:44
the work manager to make it clear work
05:48
manager is not like he had get out of
05:51
hell free card for background process
05:55
desse limitation tar val it for your
05:57
application arvali news work manager
06:00
work manager i simply e library vecchi
06:03
including l'application the sun con
06:04
springsteen forbeck grande ottimismo
06:08
henson di stile hard disk wages work
06:12
manager simply work manager its
06:14
implementing e lot of warcraft for
06:17
corner che esista in to cover esmen i
06:19
device responsible uncovering ep ai
06:22
compatibility back to epl aver fortin
06:27
lezzi weekend who will work manager you
06:31
can ab e task like this way unit
06:33
compressi some images and what is that
06:37
you can have and one of war periodi task
06:40
that you can excuses this and you can
06:44
build chain of work so you can
06:47
immaginativa three different filter
06:50
work in three different images in
06:52
parallelo è un when they complete e
06:55
operation all of these are the output
06:59
for this is going to this compresse
07:01
tasche handan la vena di shaun hall
07:03
tasker to upload remote servers uk and
07:06
chain of work next gen input e output
07:10
betis coin fongwan tasche to the another
07:13
and disease and automatica di buy work
07:17
manager tempo guardingo from three
07:20
different tasche to one
07:22
uf sun black in input merger that is
07:24
taking the three different input output
07:26
from the prince workers building putin
07:31
them together e se single input for the
07:34
next work uk conference call samnin
07:39
sanctis some of the work make sense tubi
07:42
executed only if this constraints ora
07:46
sadis fai da te michelot of science to
07:49
try to upload something to remove server
07:52
if you don't have the network so this is
07:54
going to be executed only when you have
07:56
network or you can specify that is
07:58
enough meter diener network so it's
08:00
going to be execute the only one new ora
08:02
andare wifi network
08:05
andrew weeworld manager windows de
08:08
compatibility sobek 2 pl aver fortin
08:11
implementa ex practices for systems elf
08:14
manici in the head on smooth hanson
08:18
infatti running your application but we
08:22
try to this in clean and security
08:27
looking for e nappi che library that
08:30
allow you to execute something and the
08:33
press size interval is not work manager
08:37
the solution di you're looking for di
08:38
cosa all the system elf sodo smog
08:44
ap standby hanson are still valid one
08:47
you run away work manager wii guaranteed
08:50
execution this means that we save in una
08:54
database
08:55
all de worker quest that you so even if
08:58
your application explosive devices
09:00
restarte
09:02
in più again the workers the next time
09:05
the device start and with you che in
09:10
quelli the status of your worker end
09:12
update dei veri slide to this using view
09:19
models live data indizi di the work
09:23
really well together as the year
09:27
covering epl aver fortin en en us the
09:32
implementation of the world manager
09:36
chiusi in tutti i fronti e pii end e
09:38
trigger is really is the application is
09:41
running o anni e piani del twenty three
09:43
of greater in this case we are using
09:45
scheduler ora if it something holder è
09:49
solo fiorani non lolli popova holder
09:52
verso nord opera t systems you are using
09:54
alre manager e broker receivers stesso
09:57
già stanotte job scheduler isabelle
09:59
bowles si è stato in from lollipop
10:01
because des amis sin dei pià in the
10:03
first couple implementation guide serie
10:06
to start use and job scheduler from
10:08
marshmallow open source library soldi
10:14
jucker and implementation things that
10:16
way we work manager yourself del di
10:20
wight because we are doing this shop for
10:22
you
10:23
enada fim is dead engineers at work on
10:25
work manager arsita dindane corridor of
10:29
the guys that are working scheduler su
10:31
wine win conter samp problems sand vice
10:33
isforcoop scheduler were very close
10:36
relationship to build è work around
10:38
grande estenuati sconi non so hits gli
10:41
spari the best option for you to have
10:43
something that supporter vili old
10:45
operati system stati informati ever
10:47
fortin battisti compatible with the new
10:50
version of the opera t systems
10:53
ok what are the classic ad chiusa work
10:58
manager work manager nubi alte your
11:01
worker classi su wii one of these
11:03
classes pizza di stable worker is the
11:06
bass class
11:07
it is not enough stracazzo io che ne
11:10
implementa you can use dare tree
11:12
listening worker
11:14
the most commons juss casey studios phil
11:17
knight the workers class
11:19
this is what is very easy to use and the
11:23
beast option if your work in java ora in
11:26
something very very simple in incotri
11:29
rex worker is and if you are already
11:35
using e rex java your application and
11:38
eco routine worker i soldi avere working
11:41
watling la stessa spain function in this
11:46
case and it and also automatica lì si sa
11:48
molte cancellation stop agis for you so
11:51
it's probably the best option
11:53
if you are comfort e borgo court hince
11:55
in one you work incotri to give you
11:59
energia dissi gli standby worker ki
12:04
point is that you hard disk start work
12:07
detto reds e kitsch e risalto fashion e
12:12
chicerova result and the kids point is
12:17
that this by default runs on the meaning
12:19
thread you're expecting to the sign on
12:22
which background executor you want to
12:24
run your liste noble worker something
12:29
that you to dare trici a much easier
12:33
worker in this case we are this to work
12:36
plus del re torna result is that this is
12:41
already running on and back ground task
12:43
on ebbe grande xecutor what is inside
12:47
and the work mi stupì sincrono shoryuken
12:50
o trans something asynchronous here
12:52
because he york notre turning futures
12:56
liking dell'istmo worker iori turning
12:58
results are expected to one new york
13:01
here you have done all your work aiutare
13:04
turn e'successo wissant e taiwo che
13:06
ritorni failure all you can i veri turn
13:09
era tra i so that he saw the work will
13:12
be retrade in the features continuo rwc
13:16
air sample in this case again we are
13:20
dead work bat in this case stessa spend
13:22
function
13:27
anzi inside the spende function cambi
13:30
something that is asynchronous un week
13:32
corti worker we are ore di handling
13:34
desktop agis of your application dati
13:36
san fil that i'm going to show you later
13:40
the risen article that i've got couple
13:44
weeks ago on that cosa bit in samp
13:47
details on routine workers and work
13:51
manager week scott lin and explaining
13:53
you can't est e crutin worker ines
13:56
easyway now is at work manager tu poni
13:58
one caress worker in di sky su yara
14:05
this fanchini script work and we are the
14:07
turning e è single
14:10
just make sense to use it if you are
14:13
using e rex java deve prendersi solo
14:19
delle the stable versioni stupendi 0 poi
14:21
juan
14:22
this is the android ex version of the
14:24
library di avverso un buon poi 0 is the
14:28
support version dei murales al line up
14:31
old e new delle loro menti isla non
14:32
verso in tutto in something del ris
14:35
currently e release candidate for
14:37
version to point one the temple mensun
14:39
new features e chi point gr e testing
14:44
dependency defuk a news york object who
14:46
will provide tester tester helpers for
14:50
your kids and the key defender see is
14:53
this work run time and is something is
14:56
what makes availble all the bass
14:58
infrastructure for java or for coat
14:60
l'ing
15:01
il fior using kotlin e new born to use
15:04
the che ti ex the work manager che ti ex
15:06
orco routine worker unit use this plant
15:09
anni instead of dance of the previous
15:11
one and if you're using el'ex ciava di
15:15
unibo for this dependencies su unity
15:18
runtime plast di optional e rex java to
15:21
the pensi di max io e max ave le volte
15:25
all de besi infrastructure for java plus
15:27
the air act worker
15:32
ok status how do you you can retrivi the
15:36
status of your worker this is the very
15:42
simple work rekuest where were creating
15:44
e work the quest for this save image
15:46
worker uaw a ding e tag and his and save
15:51
is this work rekuest again in article
15:54
the closet e beating tela buddies order
15:56
isde dokumentation formare manager to
15:58
you more about the work rekuest you can
16:02
get the work info that is the basic
16:06
information object fort cat in the
16:09
status of your work rekuest using the
16:12
unique heidi from the war 3 quest in di
16:15
scales di save dot ae di all you can get
16:19
alive data su youcat in seedorf getting
16:23
just risalto what is stati uster this
16:25
moment il get enough serva gold e
16:28
whiting at all the update for the status
16:31
changes again with this will the unique
16:34
e di of the work rekuest dadar option is
16:36
that we re queste all the workers info
16:40
stop this is the turning e en array in
16:45
we are using in this case dei tag that
16:48
we can't touch tumulti paul walker e
16:51
quest again di scales wiking the walker
16:55
info status and this moment o we can't
16:57
get enough servo ball l'hai detta again
16:60
with the tag name and his hardy status
17:05
for one time work this is the state
17:08
machine that we are we start from the
17:12
block status that is well for two way è
17:15
vicino work and the cena work that we
17:19
saw vi forward with three different
17:21
filter images di adar worker are in the
17:24
block status because they are expecting
17:27
that the other works are complete ed
17:29
when the work is ready to be excuse me
17:35
be there are some constraints ora in
17:37
initial d lei cioè this moment the
17:39
workers isde in the cube status
17:43
front end più status everything is the
17:45
old è costretta a satisfied there is no
17:49
initial d lei all we can run the workers
17:52
transizioni in del running status un
17:55
running the pen is the work and risk
17:59
unseld returning failure of success wii
18:03
transige in tre differenti final status
18:05
di succeeded feld or cancel derisero tra
18:09
i we are going back into the ankh youth
18:12
status ciò these are all the status del
18:16
cutie neve and if you re queste worker
18:19
info live data in uk servo ball
18:22
you can get the information about di
18:24
status changes in your application
18:29
cancelling work we say that work and i
18:33
can say you can can sell the work
18:35
yourself and again starting for work
18:38
rekuest you can cancel the work by using
18:41
the unique e di of the war 3 quest ora
18:45
nel similar way you came cancel all the
18:48
work at heart aceto è tag name in this
18:51
case taxi and is something you to your
18:55
work su you can say it e di transizione
18:58
in the cancel indec unseld status and
19:01
other auctions di operati system
19:03
foursome reason can see your work di
19:06
comfort sempre gr constraints for having
19:10
the network and while you're executing
19:12
the workers you lose de connectivity the
19:16
opera t systems work manager is going to
19:18
stop your worker in king and it again
19:22
for the features and is not going
19:24
indiscreti trances into the cancel
19:27
status is really just stop ed il note
19:30
expertise notte king chiaro eni results
19:33
from the workers and it's going to in
19:35
cure it again for the features so if we
19:40
are this worker a2a handle desktop agis
19:44
su one thing sisde in my work function
19:47
weekend check this is stop ed function
19:52
r truth is my work has been stopford
19:55
templi fan uploading assetto files to
19:58
remote server anche in check this before
20:01
train to 2 in upload
20:03
because he may be that ai lost the
20:05
connettiviti end anche a voi di ventoux
20:08
try to 2 nei blog workers binstock già
20:13
da fini to do is that ok dell'eterna in
20:17
this case is not use so ai caratteri
20:20
success aicarr eterne fei lorda semmai
20:22
doesn't matter la daf insegne to due
20:26
anni tweb this on stop callback guerra
20:30
chendu sun clean up
20:32
i fan di tucson forte tempo lifan
20:34
uploading ten files anche in the kids
20:36
are here to cheque o meni fileserve
20:39
upload ed il nao cioè kenneth from the
20:42
list of files n next time the work di
20:45
sexy chiude nice downloading polo all of
20:47
them of them are just upload the missing
20:50
files that are not enough l'odet unique
20:55
work il liquor kate something that aic
20:59
and for executing something only one e
21:03
kin craven cena working di scales ai
21:06
canestri di fran policies for one the
21:08
work for a unique work of one time
21:13
worker anche kipps owen e create new
21:16
work rekuest eyckenen hewitt hazel
21:18
unique worker e quest è in discesa pizza
21:22
i files d'equipe holy see if there is
21:25
primi suona in chiude in skipping privi
21:28
swan anche al re peso and means that the
21:32
last work rekuest databank ewing e se
21:35
unique worker is replacing eni previous
21:40
work rekuest that he has been used any
21:43
of it was executing while ayane chiudi
21:46
scenic work is going to be stop ed stop
21:49
ed twain chiude newman the last option
21:52
isde up and policy means that is going
21:55
to create formi e cena work di scambi
21:59
useful forks empoli fiera dei record man
22:02
work is done
22:04
in più è work vele ball four shampoo
22:09
like e messaging application unit senza
22:11
message battisti important the message
22:14
arsenti in india wright order uk usde up
22:18
and policy e in this case pending the
22:22
work hard to the pv swan isterismo
22:24
unavailable otherwise it will be the
22:26
first one in the cube which one to use
22:31
il fini to use unique worker di default
22:33
option forma ai panthers d'equipe policy
22:36
isde simpler and is the one that makes
22:40
network.it sta gente coveri your york
22:44
gli orari requirements news one of the a
22:47
da juan les pins une derek wire mentiva
22:49
tifi don't have and strong requirement
22:52
d'equipe is the less expenses for work
22:56
manager di crisi semplice if there is
22:59
already e prius work rekuest in chiude
23:02
in the unique work e di fissore reader
23:05
does nothing for periodico worker di
23:10
artù di fran policies for unique work
23:13
keep and replace there is no happened di
23:17
così in periodico work you do you cannot
23:20
crane e create chain of work because he
23:23
periodico work and never succeed e never
23:27
complete is never enough find infinis
23:30
status su you cannot eve e next e you
23:34
can not finish one worker to go to the
23:36
next one always looping senso né cena
23:40
work up and policy for a unique worker
23:44
for periodico worker in this case again
23:48
the simpler toews dell'essex pensilis
23:51
d'equipe policy so if i don't have and
23:54
strong requirement this is the best
23:57
option and you can choose the place if
24:00
you have r4 in to replace the previous
24:03
worker e questa will be con sdegno wanna
24:06
have some additional information disease
24:10
e como new skies for periodico work for
24:12
campo 2 e beck e backup worker de disse
24:16
che e secchi
24:17
executed periodica lì in this case
24:21
rigido e you won't wait you eat in the
24:24
application create da un buon tu in più
24:29
multiples times the same worker having
24:32
and unique working di scales e inshore
24:35
that you are sure that when you excuses
24:38
cod
24:38
there is at least one web da rise
24:41
maximum one backup worker dati sco in
24:44
tuti in the cube
24:45
ciò il sempre 20 youtube è multi paul
24:49
time discrete in di database cosa a 7
24:54
worldwide scarantino that your work e
24:58
rischio in tubi ex chiude i suoi saving
24:60
award tra questi nel database even if
25:02
you are setting the dead e the device
25:05
disco disco in tubi a game network
25:08
manager che checking database delle
25:10
quest was ore l'idea penso nota enzo
25:14
indies adc non rekuest in this is really
25:19
well you and chiude unique periodico
25:22
work hard disk e backup work di string
25:28
is the name of the unique and work
25:30
rekuest of this unique work e li
25:33
something that you che hughes fork
25:35
sample to retriever the information
25:37
worker info you can use this that like
25:40
in this case dei live that has enac
25:42
serva ball a new king and the status of
25:44
your work of your unique work this is
25:51
the string so what is used to retrive
25:54
the correct work rekuest periodi cuork
25:59
periodico work and sand di francis con
26:03
per to one time workers buon or the
26:07
difference isfort polverini noi you
26:09
cannot setten initial d lei in work
26:13
prodi quarter e quest or to be correct
26:16
you cannot 7 before versante poi juan al
26:19
fatto garante linee verso il tubo in one
26:22
e lis canide quanso the team a add this
26:26
day capabilities di lei worker e quest
26:30
worker e quest for periodico for perioli
26:33
cuore e swiss we cannot up and unique
26:40
work for prima di quarter questi only
26:43
have chi per place in the last di
26:45
francis there is no foxit status di cosa
26:48
as the one complete worker this is going
26:52
to bring it again for the next
26:54
esecuzione ed senta in per is not even
26:57
fail status di steam machine for work
27:02
priori world is much simpler than the
27:04
stand machine for one time periodi cuork
27:07
you just can be used to you can be
27:10
running cambi cancel by some one with
27:15
the place
27:15
ciò there is not even block status di
27:18
così rondelle chain o periodico works of
27:20
all the never waiting for e privi work
27:24
to complete
27:27
this article where cui andrai thing
27:31
catini habit morin the tail onde di
27:34
francis nn some other things legali in
27:37
periodi cuork if you are using version
27:41
tubo in giro ovation va un pò in giro e
27:43
unit web e gli initial d lei one option
27:46
isfort campo to use and one time war 3
27:49
cuesta women initial d lei and and his
27:53
work air you justin chiude è per iori
27:56
quarter e questo io che hughes district
27:59
finché ok ai monti weight liking di
28:01
scales six hours and enna e statue
28:04
equestri execute ed howard a game
28:12
this is now 3 quale animo rifiorì usi
28:15
inversion tu poi juan next how to test
28:20
your worker
28:23
since the beginning work manager include
28:26
the e testini tel per ora di inversion
28:30
pò in giro in tutto in giro
28:32
while you can re queste sette target
28:35
context and get con figure configuration
28:42
for work manager for the hell per in di
28:45
scales by default detesti nitel per
28:47
using the synchronous executor soli your
28:51
work e rischio in tubi executed
28:53
synchronous li so it easier to test it
28:55
you can change and configuration weekend
28:59
ad log level different loeb level you
29:02
can change the worker factory enser
29:07
definisce il test è work manager in this
29:09
way and for york test
29:12
it's really just a boat retrivi in the
29:15
writing in the same way l'euphrate
29:17
normali e war 3 quest in più in the
29:20
walking in the sing way you are
29:22
everything is going to be execute
29:24
synchronous li by default su you can
29:28
miglior test del result and jack the
29:32
result is what you expect your work and
29:35
there is the dokumentation kia enough to
29:38
gaidet explains 82 testing and his for
29:42
the periodico work rekuest all'house i
29:46
20 m e test driver way you can see
29:50
simulate time delay suoi fiabe periodico
29:55
periodico work executed have to our new
29:57
doni to wait for the two awards uk and
30:00
time travel detesta so that every thing
30:03
is it in immediati se in for the set
30:07
initial d lei uk in testa con strains in
30:10
this way you can sede constrained suite
30:12
di test driver inversion to one with the
30:19
couple of new builders for the test to
30:22
test your worker in the skies breve test
30:26
worker builder n test liste worker
30:29
builder su the previous facility de
30:31
privi sel per was only useful to test
30:35
worker classes was not very erfurt test
30:38
l'istanbul workers orco routine workers
30:41
in the reason is because he worked
30:44
classes ar il running on the micros work
30:48
manager di said on which executor is
30:51
running the workers class in statford
30:53
lista del worker è un fork routine
30:55
worker il something that you the side
30:58
york o the orphan cortini using the fall
31:02
di specie al sud test world builder and
31:05
the world been there is something that
31:08
ex chiuda retribuiva di going to work
31:10
manager and executor york test gli
31:13
scherzi che il setup gli ortisti in this
31:16
way you just used the stilisti moore
31:20
worker builder instead of the normal
31:22
work rekuest builder to be held is this
31:27
work rekuest and then you can't go in
31:31
tubi execute e di media cli è luke in
31:33
check the result de nice fiennes here is
31:36
that you can't fork sample set input
31:39
d'età ogni work rekuest un simile to
31:42
what is the result oggi cani va in seta
31:44
del fora meters like the run attempt
31:47
canzo imagine that you have in upload e
31:49
work e juventus checkin senior worker
31:53
that for the first ri times upload phase
31:59
one toure try and words entry times the
32:03
heart happy town taiwan to fail di
32:06
upload because there is something wrong
32:08
su you can't est dischi freni condition
32:11
in this way setting rana the count dart
32:14
lì in giù ruolo che in new york test war
32:16
3 quest sode configuration and while you
32:22
want chase you me one to change
32:25
configuration and work manager forse un
32:28
po to provide york custom executor by
32:31
default worker classes arana one
32:34
background executor that are the fact
32:36
that is the find the work manager
32:39
library me before summer is only one to
32:42
use è differente xecutor
32:44
gli uni dei custom configuration for
32:46
this o hai un setup di fran login level
32:49
e special one you are the stand by me
32:53
before saint brisson juventus changed
32:56
his level you can use and custom
32:58
configuration tool setup e custom worker
33:01
factory in this case work workers
33:05
because there and execute rieti executed
33:08
buyworld manager giovanni r e capo lo
33:12
para meter sesso the application context
33:15
and e il sun world parameters that are
33:17
here and by the library like that
33:19
contains fork sample the run time
33:21
fountains of having i rom custom worker
33:25
fattori alla wto e multipolare
33:28
additional parameters pasto your workers
33:31
e dissensi sul for use in dependency
33:35
injection to give you use the youth and
33:40
find and custom configuration foro vol
33:43
unity disable di default configuration
33:48
default initial isee shown that is on by
33:51
default ad indisse rule to the android
33:55
my first two way you are moving this
33:58
work manager initial heiser and then you
34:02
your application class in tour indian
34:06
creek
34:08
you can get the custom configuration and
34:10
initial aid worker manager so you don't
34:15
initial aylward manager your words are
34:17
not going to be execute ed è un buon the
34:21
initial isee shaun is then you cannot
34:22
chase the configuration work manager is
34:25
single tom femminista wine station is
34:28
done and the reason why to this e paul
34:31
the fall configuration and his exactly
34:33
dischi se single con if you try to
34:36
initial eyes and second time work
34:38
manager guide serie two e rese e runtime
34:42
exception because it was my breath away
34:45
point of view the face silent setup e
34:49
new configuration and after you have
34:53
inizio lyse you can get en instance of
34:55
the world manager singleton
34:57
you can work will work manager and when
35:01
you run initial eyes work manager
35:03
wheeljack inside e database eedar work
35:07
rekuest that can be execute the disco in
35:10
to execute his work rekuest so you make
35:14
this new configuration this way in
35:16
discesa avenue login level worker
35:20
factory and my hand ainis lies the work
35:26
manager and hiking et des e reference to
35:28
the work manager single con gli strilli
35:32
a bath application start work manager in
35:34
scia lies and then you can execute work
35:37
manager kanex chiude work rekuest e
35:41
sample my world air fatti river easy gli
35:45
hard disk network air that is expected
35:48
to parameters that by default to the
35:51
walker the context and e worker
35:53
parameters class the workers class name
35:56
this is what is used by work world
35:60
manager to understand and which is the
36:02
class tubi executed su in di database
36:04
when we cat and work rekuest we are the
36:07
complete game class name of the work
36:12
airplus technique b executed so what is
36:15
important here is that for whatever riso
36:18
new arduin sempre factoring e in change
36:21
in the class name of your worker new
36:24
york deploying enap detto de users gli
36:27
uni to keep in mind at work manager may
36:30
have some work rekuest da tasti using di
36:33
holder packaging holder class name su mf
36:36
il sadico citizen found the class in the
36:40
application by default work manager di
36:45
default worker factory user and
36:47
reflection to find the world class news
36:54
we want in this case amici checking
36:56
forte strings
36:59
in versione to point one o work manager
37:02
with the cup ability to you tool on
37:04
demand initially session e problem with
37:07
the previous iniziali session lustrini
37:09
that is happening turin des depots
37:13
loading of your application solkan in
37:16
fact the the performance of lancini your
37:19
application so on demand initiale
37:23
session guardo indenni salice shaun work
37:25
manager oli ed e momenti iure quest ed è
37:29
instance o work manager what you have to
37:33
do in this case eastwood use this
37:35
additional interface and to provide is
37:38
that work her work manager configuration
37:40
and you are turning ed e iori turning
37:46
the disse configuration hands on next
37:50
time you call the first and cold and get
37:53
instance you have now
37:54
in addition al parà meter you pass the
37:56
context cambi è context of the en
37:60
activities sean ward manager for this
38:02
context reeves the application object
38:05
enzo icann retrive the rye configuration
38:08
and initial eyes work manager it is not
38:12
yet initial heist so what about a girl a
38:19
note dagger expert di conformità give
38:26
general guidelines regarding the year
38:28
nel senso pictures dagger che news da
38:33
green di franco ei dardi fra
38:35
requirements di front architecture
38:38
differenze tapso o noi o gysin daggers
38:42
aidan sam experiment with the
38:44
application we use in our team to all
38:46
the experiment blood più probabile blood
38:50
it il sample application for us with
38:55
linings but it's the complex application
38:58
frana da point of view because it's now
38:60
modular suite was ai nice monoliti di
39:03
format we fall the world the teams da
39:05
nis nove moduli applications
39:08
having worker in one modulo e miscele
39:12
session happenning di nata in the
39:14
memorial it's a bit three kings in
39:16
crisis and aziende vuota e one to one
39:20
fila di heavy mai worker edwing e una
39:25
put ova comment sicuramenteweb disse
39:31
news designer new service paese pare
39:34
meter to my work and then the knife in
39:39
situ is then you cliente e worker
39:42
factory way of this traditional
39:45
parameter that da gary wise pass into
39:48
you hell and networks checking that this
39:52
was my clan name the class name of my
39:55
phone story worker and pass da di scena
39:59
parameters o instead of having e worker
40:01
with just to normal parameters ad di
40:04
sadi sheen al service nats ha il suo
40:08
modo la raffica e su su michael mo
40:12
application modo il da snow anything
40:14
about the designer news service orde
40:17
worker orde worker factory inversion tu
40:21
poi one a game lot of new interesting
40:24
featuring version tu poi one per i sette
40:27
leghe thing worker factory there is the
40:29
dokumentation izzo online
40:31
you can add worker factory e tram time
40:35
di studi just e dynamic list while you
40:37
can add worker factories it's going
40:43
through the least and it doesn't find
40:45
and nothing is back to the default e
40:49
worker factory implementation guerri
40:53
chiusi reflection in my will dagger
40:58
hijas ken inject this and designs
41:02
designer new services and her retrieved
41:07
and configuration the context and
41:09
configuration and suoi tentenna add to
41:13
my factory di
41:15
this new worker factory and this seems
41:19
to work il sun ad astori that in reality
41:23
wii discover the back back and services
41:26
that is getting the box da the workers
41:29
subire move old and functionality va
41:32
this is more weekend in something like
41:34
her blood and that is really modula
41:38
raison gli usi indies delegati worker
41:41
factory ken be really è e solutions dal
41:44
things to keep in mind any way you need
41:48
to keep in mind geni to register worker
41:51
factory di cosa if you do un regista
41:55
your work factory work manager doesn't
41:59
know how to you run your workers and if
42:01
you're expecting somma di scena
42:02
parameters if it chiusi in default
42:04
worker factory you just that the to
42:08
normal parameters the application
42:10
context and e worker farà meters legni
42:14
minga worker requires to cancel the
42:16
workers west end i fior ius in something
42:20
like on demand delivery and he nan al di
42:23
shaun al modulo gli argini work manager
42:25
remember that they are en installing di
42:29
smodis unit cancel all the work rekuest
42:32
rilette to death modo il because he
42:35
otherwise work manager d'asino exactly
42:37
how to run dose at work rekuest you're
42:42
going to get e class name not found
42:45
exception conclusione old e new dell'oms
42:54
isla non version to point ex so fashion
42:56
taiwan incluse lot of new and
42:59
functionality da the really useful is
43:01
not the boyette bhatti sorridere gli
43:03
scan di dessau expect the short list
43:05
going to move to stable machine to buy
43:09
one we only è fixes un verso un pò in
43:12
giro so if you're not you seen the
43:14
android ex version york missing all
43:16
denis funzionali i figli scott lin use
43:20
the court in worker is really nice works
43:23
well gigante kalou che del blocco style
43:26
ruota bot
43:27
work manager ancora en côte l'ing itek
43:30
spain a bit in details of humour
43:33
questione yukari ciottoli don forget to
43:37
handle cancellation stopping your work
43:39
di cosa e operati system can can stop
43:43
your work and is going to be execute the
43:46
game su unit wind oldies gli scherzi
43:48
scorti worker or ed implementa moody's
43:50
for you è fini to do something once make
43:55
it unique users unique work and work the
43:58
quest harper system in database
44:00
including the beta so this is why the
44:03
data esatta per kilobyte lei miss di
44:05
cosa this is going to fill up dei
44:07
database otherwise guerin quickly by
44:09
default
44:10
we keep the work rekuest even when there
44:13
affini status succeeded completed sexy
44:17
gate failed ora cancel for all thing
44:21
seven days batis assen implementation de
44:23
tende poi in to keep in mind is that
44:25
hill che in change for a long you want
44:28
to keep the war 3 quest york database
44:31
wonder complete the space in the
44:38
database
44:41
these are some resources dokumentation
44:44
line cod lab that i can't rai realismo
44:48
del capro videosapere ball and the rise
44:53
blocks series
44:55
un work manager starting from dentro
44:57
d'action the basics of the piai hot news
45:00
i tweets scott lin and work manager and
45:03
with the periodico world show ai dolci
45:07
time for questo senso a will be e di
45:10
google buzz later hi fi aveni questo non
45:13
so funk you
45:16
[Applauso]
droidcon News

Tech Showcases,

Developer Resources &

Partners

/portal/rest/jcr/repository/collaboration/Groups/spaces/droidcon_hq/Documents/public/home-details/EmployerBrandingHeader
EmployerBrandingHeader
https://jobs.droidcon.com/
/portal/rest/jcr/repository/collaboration/Groups/spaces/droidcon_hq/Documents/public/employerbranding/jobs-droidcon/jobs.droidcon.com
jobs.droidcon.com

Latest Android Jobs

http://www.kotlinweekly.net/
/portal/rest/jcr/repository/collaboration/Groups/spaces/droidcon_hq/Documents/public/employerbranding/kotlin-weekly/Kotlin Weekly
Kotlin Weekly

Your weekly dose of Kotlin

https://proandroiddev.com/
/portal/rest/jcr/repository/collaboration/Groups/spaces/droidcon_hq/Documents/public/employerbranding/pad/ProAndroidDev
ProAndroidDev

Android Tech Blogs, Case Studies and Step-by-Step Coding

/detail?content-id=/repository/collaboration/Groups/spaces/droidcon_hq/Documents/public/employerbranding/Zalando/Zalando
/portal/rest/jcr/repository/collaboration/Groups/spaces/droidcon_hq/Documents/public/employerbranding/Zalando/Zalando
Zalando

Meet one of Berlin's top employers

/detail?content-id=/repository/collaboration/Groups/spaces/droidcon_hq/Documents/public/employerbranding/Academy for App Success/Academy for App Success
/portal/rest/jcr/repository/collaboration/Groups/spaces/droidcon_hq/Documents/public/employerbranding/Academy for App Success/Academy for App Success
Academy for App Success

Google Play resources tailored for the global droidcon community

Follow us

Team droidcon

Get in touch with us

Write us an Email

 

 

Quicklinks

> Code of Conduct

> Terms and Conditions

> How to hold a conference

> FAQs

> Imprint

Droidcon is a registered trademark of Mobile Seasons GmbH Copyright © 2020. All rights reserved.

powered by Breakpoint One