search for quality content on coroutines ends here , keep up the good work brother
@pavelgera72 Жыл бұрын
Ты очень хорошо объясняешь
@xKuroiKazex2 жыл бұрын
"Increase text size a little bit..to 50sp" I had a good laugh from that. )))
@jakariamasudliton4 жыл бұрын
Quality content....keep uploading more videos...hope your channel will be popular soon...
@PhilippLackner4 жыл бұрын
Thank you so much 😀
@professorposh41462 жыл бұрын
Please cover custom coroutine scopes and the differences between that and the built-in ones. Thanks.
@chimezieorji-unegbu71103 жыл бұрын
Your videos are very sound. They do what they got to do. Great job!
@Progamingff110 ай бұрын
Thank you clear explanation ❤
@naruebetphramrit47063 жыл бұрын
Amazing series
@ЄвгенійКобахидзе3 жыл бұрын
Thank you very much for such useful material!
@kryzz15924 жыл бұрын
When using the MVVM-Pattern. Which scope should be used in a repository when doing network request or reading/writing a database? If we have a viewmodel that calls the repository should we pass the underlying lifecycle and then use this lifecycle as a scope for the coroutine?
@PhilippLackner4 жыл бұрын
It's not the job of the repository to start the coroutine. Just use suspend functions in the repo and in the viewmodel you execute them with viewmodelscope
@kryzz15924 жыл бұрын
@@PhilippLackner Thank you!
@thonguyen2523 жыл бұрын
these are very easy to understand videos. I am so appriciate that, so I did press the like button twice..
@haseen53 жыл бұрын
Good explanation thanks
@Kunal-jp8tn2 жыл бұрын
Thank you so much for this awesome series.
@rahulh67112 жыл бұрын
great video
@rishabhgupta6552 жыл бұрын
Thank you ❤️
@bassamnasser7953 Жыл бұрын
Very helpful ❤
@daniboy9432 жыл бұрын
Amazing series of videos, thank you.
@ReyAlexam3 жыл бұрын
Very clear explanation! keep it up
@droidcasts73503 жыл бұрын
really nice example, keep it up
@user-my6yf1st8zАй бұрын
brilliant
@brucebane74013 жыл бұрын
amazing bro !!!learning a lot
@denis_artemov3 ай бұрын
great!
@abhishekauti1643 жыл бұрын
Thanks i got it solved
@pavelb37344 жыл бұрын
Спасибо
@ganeshjogam78373 жыл бұрын
Nice work can you please make detail videos regarding scope is created and cancellations and exceptional handling in coroutine.
@larrystreehouse1124 Жыл бұрын
Could you also spot out difference between suspend fuction and completedeferred ? 6:24
@ChrisAthanas3 жыл бұрын
Very helpful
@mohameddarwish13474 жыл бұрын
Danke
@PhilippLackner4 жыл бұрын
Bitte :D
@TheMrAntosiek2 жыл бұрын
Please add more teoretics parts to video
@hades54443 жыл бұрын
nice
@AlgeriaHere4 жыл бұрын
so lifecyclescope is meant to stick that coroutine to activity lifecyle , if app is ondestroy mode , the coroutine will be dismised as wel to not cause memory leak and for the viewmodelscope is meant to be used with viewmodel as it sticks to viewmodel lifecyle so when viewmodel is cleared , the coroutine is cleared too , but little question , what is the point of having this global scope , like what is the advantage of having it , thank you so much , and as always great video , good work
@PhilippLackner4 жыл бұрын
Thanks 👍 sometimes you want a coroutine to be alive as long as the app. Imagine doing a calculation that affects your entire app, you don't want to cancel that calculation when you switch the activity
@AlgeriaHere4 жыл бұрын
alright yeah so you mean if there is a work that needs to be processed continuously while app is on foreground , in this case global scope is the best choice right
@PhilippLackner4 жыл бұрын
@@AlgeriaHere yes, you also have to think that kotlin is n ot only for android and PC programs dont usually have a lifecycle, so there GlobalScope is probably used more frequently
@yannism95943 жыл бұрын
@Raunak Nandan Singh Interesting, thanks !
@fatihsevbanuyank5942 жыл бұрын
My question is when a Global scope routine finishes it job, does it automatically get deleted from the memory or does it still remain there? Another question is that when the lifecycle scope is finished with the job, does it get deleted as well while the fragment or activity is still operating? Thanks for your response in advance. (Danke schon)
@wolfrudel76242 жыл бұрын
Is it right, that the coroutine holds automatically a reference of the activity from which they were started even if it doesn't use any resources of the activity? So the activity or resources won't be garbage collected even the coroutine use no ressources of the activity?
@Joe-yu9wc3 жыл бұрын
Hi bro, did you have "How to run a coroutine in Service" videos.
@dawoodamir20114 жыл бұрын
Nice vid dude
@PhilippLackner4 жыл бұрын
Thanks!
@sanskarsharma1003 жыл бұрын
Hey, How can you set up onClickListerner without findviewbyId and Viewbinding. I cannot do that in my android studio
@wahyukoco45622 жыл бұрын
may i ask, why you can do click a button (setonclicklistener) inside mainActivity without findViewById?
@wahyukoco45622 жыл бұрын
and if you use viewBinding, we do with binding.btn.setOnClick right? then how can you just type btn.setOnClick?
@FelixEsUnDios2 жыл бұрын
It was an old deprecated method of accessing views without findViewById ,kotlin Synthetics, its deprecated now but I guess it still worked at the time this video was created
@ganeshjogam78373 жыл бұрын
Can you also create videos about channels and flows in Kotlin
@mujahidansorimajid15242 жыл бұрын
how are you use btnStartActivity without using any view binding?
@kheifs18 күн бұрын
I couldn't get it too. How...?
@raghavaggarwal86443 жыл бұрын
Hi Philipp, in Which thread does the lifecycle scope starts coroutines by default? Can we also use Dispatchers to start the coroutine in specific thread while using lifecycle scope?
@PhilippLackner3 жыл бұрын
by default it's the main dispatcher. You can change that as with any other scope as well
@raghavaggarwal86443 жыл бұрын
@@PhilippLackner but why a scope will start a coroutine in the Main thread? The purpose of Coroutine is to free the main thread right?
@Marcoscsouzads2 жыл бұрын
vídeo muito bom, BR não desista só pq o vídeo está em inglês.
@ManishPatel30304 жыл бұрын
Very neat and clean explanation. Thanks for this video. Do you have twitter account ? I want to share over there
@PhilippLackner4 жыл бұрын
Thanks man! No currently I don't, I wouldn't know what to post there 😂
@ManishPatel30304 жыл бұрын
@@PhilippLackner Ok when you will have let me know
@codinginflow4 жыл бұрын
@@ManishPatel3030 He has one now
@islamicthoughts50303 жыл бұрын
When calling API by onSwipeRefreshlistener under viewModelScope.launch getting error Job was canceled please help. Thanks
@rp23322 жыл бұрын
Sir, what about the coroutine that starts another activity, will it continue to exist even if the task is complete or will it get destroyed with the finish call or with the completion of the code block? Sry if my doubt is too obvious. Please reply and how do you don't need to use findViewById()?
@pranaysaini5648 Жыл бұрын
in kotlin we don't need findViewById()
@mlktech15314 жыл бұрын
Thanks for the informations . In the vedio of viewpager 2 how can we make the images show in all screen
@PhilippLackner4 жыл бұрын
In all screen?
@mlktech15314 жыл бұрын
I mean full screnn size
@ajaygalagali59634 жыл бұрын
@@mlktech1531 May be you should set layout height and width of ImageView to "match-parent"
@ajaygalagali59634 жыл бұрын
:) Thanks
@PhilippLackner4 жыл бұрын
Welcome!
@ericgoto24594 жыл бұрын
How does CoroutineScope fit into this subject?
@ganeshjogam78373 жыл бұрын
Detailed explanation would have been better about scope