5 Android Interview Questions - Threads, Leaks, Intent, Service
Vložit
- čas přidán 1. 08. 2024
- In this video I'll answer 5 common Android interview questions for the intermediate Android developer position.
#Android #AndroidInterview #AndroidDevelopment #CodingInterview
0:00 What is a Pending Intent
1:26 Service Thread
2:20 Memory Leaks
3:50 Static
4:54 Cross-app Interaction
5:13 Bonus Question
Follow me on Twitter: / odaymaleh - Věda a technologie
2 thread in asynctask one is background thread and other is ui thread to set the data on ui or view.
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).
I like your intonation 😂
big thanks for making this video 🙏
Thanx man this was very helpful 😊
Great Sir
You should have way more subscribers. I just found your channel and the content is delicious 😋
awesome bud wish i knew before
Yes. I would say 2 too.
Many thanks to you ♥♥♥
I love your humour haha at 3:15.
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?
That did make sense to me
Could you please recommend some projects for resume? thx
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?
mistake may be
Great content
thanks Chris, what else would you like to see on this channel?
Deeper dive on coroutine exception handling and Room database relationship annotations with good examples and graphics
@@odayprogrammer End to end examples of using Unit/funtional tests.
Can you imagine, I met these questions not long ago. Exactly the same questions
Got asked a bunch of questions that were answered here. If only i watched this earlier 💀
Made me crack up at the start
1 background thread 1 callback to main thread
But AsyncTask is already deprecated, are they going to continue asking about it?
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
@@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.
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.
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
@@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.
@@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.
two threads
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.
2
there are some many mistakes in this video
Be nice and correct them if you know them