2 thread in asynctask one is background thread and other is ui thread to set the data on ui or view.
@ped7g3 жыл бұрын
depends on Android version and the way how you configure it. There was attempt from Google to launch AsyncTasks at several backround threads around some Android... 4.0, or 2.something... and it turned out most of the apps were not written in a way to expect several async tasks getting executed out of order, so they dialled it back to serial execution of asynctask on the default executor pool, but you can ask for the other one, which allows you to run several background threads in parallel. (writing this from head, and haven't used this API for over year, so it's possible I mixed up some details, or even maybe I'm thinking about some other subsystem, not AsyncTask, but I'm like 80% sure it was actual AsyncTask stuff, not Thread).
@eduvgama3 жыл бұрын
Yes. I would say 2 too.
@walktxrn2 жыл бұрын
Correct me if I'm wrong. But don't you mean static inner classes with weak reference so they CAN be GCd when no longer used?
@bharat_1322 жыл бұрын
That did make sense to me
@fb7673 жыл бұрын
I love your humour haha at 3:15.
@braxtonhancock55083 жыл бұрын
big thanks for making this video 🙏
@ChrisAthanas3 жыл бұрын
Great content
@odayprogrammer3 жыл бұрын
thanks Chris, what else would you like to see on this channel?
@ChrisAthanas3 жыл бұрын
Deeper dive on coroutine exception handling and Room database relationship annotations with good examples and graphics
@786madiha Жыл бұрын
@@odayprogrammer End to end examples of using Unit/funtional tests.
@thebatu3 жыл бұрын
min 3:26 Are you sure that the correct phrase is not "so they CAN be GC-ed" ? since weak reference can be GC at anytime, no memory leak will occure?
@sagarock10123 жыл бұрын
mistake may be
@michealandretis72433 жыл бұрын
Know all of them, still not hired. But I guess If you're not a master in android development, testing, use every single reactive tech, dependency injection etc etc etc you don't even qualify for junior roles.
@odayprogrammer3 жыл бұрын
Funny you mention that just now, I got rejected for a senior Android dev position at a Dutch company just 2 hours ago, because of a personality test :) really don't be discouraged, many companies aren't worth your time and it's good to know upfront, better than wasting your time with them
@michealandretis72433 жыл бұрын
@@odayprogrammer You know what's funny? your skill indicator before the technical interview for 'junior and mid roles' is measured by questions like 'What is an activity' and 'How do you start another Activity' or 'What is a toast' all in simple Java ... you jump in the interview and get asked about what are the differences in testing methods , how experienced you're in using dependencies and of course mastering MVVM. And if you say you're mostly using java they look at you as if you're an alien as if you can't achieve the exact same results with java.... Note that these roles are supposed to target graduates, and i'm like.... There is no such thing as mvc,mvvm in any school. How the hell are you supposed to work like that if you've never joined a big company or worked Freelance(like me)/Self taught? Funny is that after an interview, the hr confided to me that i answered everything correctly for 1.5 year of experience vs mid level seniority.
@pinkies26k3 жыл бұрын
@@michealandretis7243 I truly gets u. I got rejected few time by big companies that expect me to be able to memorise the terms and definition. I'm self taught in android development. I don't know many of the terms but I know how to get these things done. But these people from big companies always have this attitude like "oh you don't know this? Try reading about it next time" Lately the interviews feel a lot like exam. I did try to revise on the android knowledge but different interviewers ask different questions and if I try to answer it from my point of view, they look at me like I'm some kind of idiot. It's really depressing.
@aniketshetty48003 жыл бұрын
1 background thread 1 callback to main thread
@techmarinar3 жыл бұрын
Thanx man this was very helpful 😊
@jorgegutierrez21002 жыл бұрын
You should have way more subscribers. I just found your channel and the content is delicious 😋
@kwesiamartey2 жыл бұрын
Can you imagine, I met these questions not long ago. Exactly the same questions
@mohamedalaa6yahoo Жыл бұрын
Many thanks to you ♥♥♥
@rohitjakhar66723 жыл бұрын
Great Sir
@nokaffirisinnocent2 жыл бұрын
awesome bud wish i knew before
@denniskwakye61772 жыл бұрын
Got asked a bunch of questions that were answered here. If only i watched this earlier 💀
@strictway29073 жыл бұрын
But AsyncTask is already deprecated, are they going to continue asking about it?
@beyondlimits3843 жыл бұрын
if we use async task in ur project they will bash us..on.. why u not using retrofit or volley and in last they will ask question on async....there is no limits of hypocrisy
@MegaRockandroll092 жыл бұрын
@@beyondlimits384 Its to test your basic knowledge. There is no hypocrisy here. If you have implemented Async they why did you choose async , why not new Handler or Thread or WorkManager.
@AlfredGuimaz3 жыл бұрын
Made me crack up at the start
@ikeo86663 жыл бұрын
3:26 so true. as an interviewer just tell me you don't know so we can move on rather than trying to buillshit and looking stupid. Nobody expect you to know everything, just fess up and next.
@smirnovsergey20103 жыл бұрын
two threads
@carolhuang55292 жыл бұрын
Could you please recommend some projects for resume? thx