What is the Context? - Android Basics 2023

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 พ.ย. 2024

ความคิดเห็น • 89

  • @jayshartzer844
    @jayshartzer844 ปีที่แล้ว +202

    Thanks for giving context to Context

    • @camiloiush
      @camiloiush ปีที่แล้ว

      Test

    • @amkhrjee
      @amkhrjee ปีที่แล้ว +1

      Someone had to say it at some point. 🤷‍♂

    • @cuatxe
      @cuatxe ปีที่แล้ว +3

      Is it you dad?

  • @skarloti
    @skarloti ปีที่แล้ว +54

    Android Basics 2023 should be adopted by Google! So much has been written and nothing has been said so well. Thanks for the wonderful series on behalf of all beginner Android (Kotlin) developers! 🔥

  • @ojtoborowei5537
    @ojtoborowei5537 7 หลายเดือนก่อน +4

    Never knew what context did, but I’m happy to say this has laid a good foundation for me

  • @khaxbiker
    @khaxbiker ปีที่แล้ว +1

    so long without understanding the concept of Context until watch your video. thanks!

  • @imamyusupbachtiar5461
    @imamyusupbachtiar5461 ปีที่แล้ว +4

    Thanks a ton, he's better than my professor

  • @snowcat2233
    @snowcat2233 26 วันที่ผ่านมา

    Thank you so much sir, I have been working as android developer for 5 years but I just understand what is context now.

  • @siddhartharoychowdhury2489
    @siddhartharoychowdhury2489 ปีที่แล้ว

    Such clarity on Android...you will only find in this channel!

  • @Radiokot42
    @Radiokot42 ปีที่แล้ว +3

    It was so interesting to see how Context retrieved in Presentation being shown on the secondary display is different from the one retrieved in its parent Activity which is shown on the main display - they had different resource configuration, so on the smaller secondary display hdpi drawables were used, while on the main display they were xxhdpi 🙂

  • @chimezieorji-unegbu7110
    @chimezieorji-unegbu7110 ปีที่แล้ว +1

    There's no over knowing these things. Always something new to pick. Thanks for your videos

  • @venkatpamulapati3862
    @venkatpamulapati3862 5 หลายเดือนก่อน

    I've read the documentation at least three times but your videos explain these concepts so much better, thanks!

  • @DanteMarshall-p1n
    @DanteMarshall-p1n ปีที่แล้ว

    Thanks! For 10 min video I got more usefull information than for the previous hours of exploring other resources

  • @MyCodingDiary
    @MyCodingDiary ปีที่แล้ว +7

    Your videos are a great resource for anyone learning to code. Thank you for creating it!❣

  • @krishnathotakura8116
    @krishnathotakura8116 7 หลายเดือนก่อน +2

    Good material, concise …and great presentation!! Only suggestion I have is get rid of the annoying sound and image effect you have once in a while..maybe if the video is loading ?

    • @FillingProudIndian
      @FillingProudIndian 2 หลายเดือนก่อน

      wow saar "material" very good term saar amazing vocabulary hope you are having a great day doing the needful. btw which designated street?

  • @himanshu.acharya
    @himanshu.acharya ปีที่แล้ว +10

    I am learning Android development and now my basics are very much clear but when I try to read official documentation it still feels tough Please make a dedicated video on how to actually go through it

    • @tryscope8731
      @tryscope8731 ปีที่แล้ว +2

      Yeah the Android docs suck

  • @alirezafaraji
    @alirezafaraji ปีที่แล้ว +2

    I'm loving this playlist. keep up the great work

  • @amavrik
    @amavrik ปีที่แล้ว +2

    Thank you Phillip! This was very helpful 👍👍👍I wish this video came out before I submitted my first app to the Google Play Store. Had struggled a lot with passing the context.

  • @prashlovessamosa
    @prashlovessamosa ปีที่แล้ว

    Thank you I have just joined this series will follow up to end.

  • @mircodev
    @mircodev ปีที่แล้ว

    A very good explanation of a more "tricky" topic

  • @mohammedmustafaali6716
    @mohammedmustafaali6716 ปีที่แล้ว

    Goldmine of Information ! I am collecting money to enroll to your Personal Training, hope I do it soon ! 😄

  • @theg4meover988
    @theg4meover988 ปีที่แล้ว +1

    Crystal clear explanation ! Thanks.

  • @Quancept
    @Quancept 22 วันที่ผ่านมา

    Fantastic explanation!

  • @onmoveonmove226
    @onmoveonmove226 ปีที่แล้ว

    what a greet explanation of Context,thank you

  • @veda1015
    @veda1015 ปีที่แล้ว +1

    Thanks Philipp , can you make a video about state flow?

  • @onmoveonmove226
    @onmoveonmove226 ปีที่แล้ว

    thank you Philip, this is great video about Viewmodel

  • @rakibhasan_
    @rakibhasan_ ปีที่แล้ว

    You're the best, bro! This was very helpful. Thanks for sharing knowledge...

  • @jishnugoyal4397
    @jishnugoyal4397 ปีที่แล้ว +1

    Great video! Waiting for more of these!

  • @cristianlopes1930
    @cristianlopes1930 ปีที่แล้ว

    That was an amazing explanation...

  • @marekwalica4418
    @marekwalica4418 ปีที่แล้ว

    again very cleary explained, thanks very much

  • @josh3155
    @josh3155 ปีที่แล้ว +1

    thanks for amazing topic

  • @bigpiglove
    @bigpiglove ปีที่แล้ว

    Thanks man! You did a great work already and I'm wating for more topics like these!

  • @govindnadharia6966
    @govindnadharia6966 ปีที่แล้ว

    Very informative Video.
    what theme you are using in android studio ?

  • @mahdiporkar236
    @mahdiporkar236 ปีที่แล้ว

    Great job Philip

  • @ahmedelbehiry1638
    @ahmedelbehiry1638 ปีที่แล้ว

    great explanation😄

  • @exploringgodscountry
    @exploringgodscountry 7 หลายเดือนก่อน

    I wish you had this in Java... I'm not a fan of Kotlin. Took your course on it but trying to unlearn 24 years of programming with more traditional languages such as C based and Java is quite difficult.

  • @rijalmyd
    @rijalmyd ปีที่แล้ว +1

    What is the differences between requireContext(), requireActivity(), context, and activity in fragment? And when do we use it?

  • @neoplaygame
    @neoplaygame ปีที่แล้ว

    Nice video! and another reason to use activity context over application context is when user changed system language, only activity will be recreated and the application won't. so if you use getString() with activity context will have the updated language and application context won't. correct me if I am wrong.

    • @PhilippLackner
      @PhilippLackner  ปีที่แล้ว +1

      Nah, which context doesn't matter there since it's just used to retrieve a resource

    • @neoplaygame
      @neoplaygame ปีที่แล้ว

      @@PhilippLackner oh you are right, my case should be updating an in-app language but the application context is not updated correctly

  • @spyro2008
    @spyro2008 5 หลายเดือนก่อน

    Thank you a lot!❤️

  • @viniciuscoscia
    @viniciuscoscia ปีที่แล้ว +1

    Perfect, as usual. Thank you!

  • @SuessesSumpfhuhn
    @SuessesSumpfhuhn 7 หลายเดือนก่อน

    I love your videos! Thanks so much !!!

  • @MeriemZem-lf8zx
    @MeriemZem-lf8zx ปีที่แล้ว

    very well explained!

  • @SpaceGuideHub
    @SpaceGuideHub ปีที่แล้ว

    Great free leson. Thanks!

  • @galaxiegalaxie5003
    @galaxiegalaxie5003 ปีที่แล้ว

    Great content as always thank you😊, could you provide us an example,how we could get context in kotlin and compose multiplatform.For example i want to access context from shared common with expect and actual.Could you recommend any suggestion.For example,scenario , we are using KVault it needs context for android and no need of context for ios while calling inside from shared common with compose multiplatform

  • @lachlanvass7704
    @lachlanvass7704 ปีที่แล้ว

    What Android studio theme does Phillip use?

  • @michaelk7942
    @michaelk7942 ปีที่แล้ว

    Thanks Philip for the informative video! Any chance you could discuss how to access the context in a Fragment? If I am correct, requireContext() should be used. However, sometimes I noticed that the Fragment might not be attached to a context, leading to an IllegalStateException. It would be nice, if you could discuss how to use context in a Fragment in general, what context to use, and what issues may arise. Thanks again for the great video!

    • @PhilippLackner
      @PhilippLackner  ปีที่แล้ว

      requireContext is correct, but the Fragment needs to be attached to the activity, so you can't use it in a global variable for example without lazy

  • @DušanPolák-t5p
    @DušanPolák-t5p 9 หลายเดือนก่อน +1

    Super

  • @achmadsyarif5129
    @achmadsyarif5129 ปีที่แล้ว

    thanks Philip

  • @madansharma6660
    @madansharma6660 2 หลายเดือนก่อน +1

    whenever i have to use context anywhere , i just use val context = LocalContext.current. is this approach ok? or can it lead to some error?

  • @tanveerabbas26
    @tanveerabbas26 ปีที่แล้ว

    thanks for such informative video

  • @its_saddamhowladar
    @its_saddamhowladar ปีที่แล้ว

    please make a playlist about Ios Basics 2023 as well it will be very helpful who want to start KMM

  • @sanjaybhatikar
    @sanjaybhatikar ปีที่แล้ว

    Thanks, this helps. ❤

  • @CodingExplorer35
    @CodingExplorer35 9 หลายเดือนก่อน

    nice video

  • @vectoralphaSec
    @vectoralphaSec ปีที่แล้ว +1

    Considering the traditional way of android development is dying and being phased out for the modern android development way. Are these 2023 Android Basics videos taking that into account?

    • @PhilippLackner
      @PhilippLackner  ปีที่แล้ว +5

      The things I teach here are fundamental about Android and haven't changed in the past 5 years

    • @jayshartzer844
      @jayshartzer844 ปีที่แล้ว +1

      Most Android jobs have to deal with both legacy and modern development tools and techniques. Also, Context is used everywhere.

  • @ArthurKhazbs
    @ArthurKhazbs ปีที่แล้ว

    What should we do if we need to use activity Context in our ViewModel, but don't want the memory leaks that come with referencing the Context in ViewModel's field?

    • @PhilippLackner
      @PhilippLackner  ปีที่แล้ว +1

      Don't do it, there's no reason to

    • @ArthurKhazbs
      @ArthurKhazbs ปีที่แล้ว

      So the answer to my question is: We should learn architecture better. After watching more of your videos, I'm starting to understand! Thank you!

  • @hpmusicbytes
    @hpmusicbytes ปีที่แล้ว

    Great!!

  • @parth3075
    @parth3075 ปีที่แล้ว

    legend

  • @kshitijofthejune
    @kshitijofthejune ปีที่แล้ว +1

    7:07 Imaæginnn

  • @LEEJIHUN
    @LEEJIHUN ปีที่แล้ว +2

    0:57 it comes to 'exync'? what exync mean?, awrote this in the auto-generated subtitles, but I wonder what words he actually said.

    • @jayshartzer844
      @jayshartzer844 ปีที่แล้ว

      "exact"
      "When it comes to exact use cases..."

    • @LEEJIHUN
      @LEEJIHUN ปีที่แล้ว

      @@jayshartzer844 thx :>

  • @abacaabaca8131
    @abacaabaca8131 ปีที่แล้ว +1

    From my understanding "native
    android developer" means somebody that can transform his code into the selective android processor' machine code. For example, in android, the CPU could be ARM architecture, or other architecture. So, their technique might differ for different CPU, like what library to link etc. Not to mention that android have different type of operating system too if not mistaken.
    But for us that knows kotlin, we can let JVM settle this issue of handling different CPU architecture.
    We just focus on our code testing, the unit testing, android testing.
    But honestly I wanted to learn Gradle first without android studio only Gradle and kotlin,
    and try to use different dependencies out there.
    Currently working on to parse object file for 3d rendering without tutorial. The only guidance is from C++.

    • @solarseraph
      @solarseraph ปีที่แล้ว +2

      Quick note for you: a native Android developer is anyone who writes an app for Android only, directly with Android's Java or Kotlin libraries. A non-native developer would write code in a framework like Flutter or React that cross compiles to Android/iOS/other, and abstracts away the details of Android-specific concepts like Context or the onCreate/onDestroy lifecycle. It is "native" with respect to the operating system, not the hardware- the same could be said for a native Windows or iOS app. Hope this helps!

  • @bililancun8867
    @bililancun8867 ปีที่แล้ว

    How did you make your @s green?

  • @jopadjr
    @jopadjr ปีที่แล้ว

    167th...Thanks Philipp

  • @valik1495
    @valik1495 ปีที่แล้ว

    Cool

  • @huskar1u3
    @huskar1u3 ปีที่แล้ว

    7:28 Why viewModel isn't destroyed before the activity is destroyed? Wouldn't we avoid a memory leak, in this case a context?

    • @PhilippLackner
      @PhilippLackner  ปีที่แล้ว +2

      The whole purpose of a viewmodel is to outlive the life cycle of the activity, check the previous video 😄

    • @huskar1u3
      @huskar1u3 ปีที่แล้ว

      ​@@PhilippLackner Thank you! So, in this case the memory leak will occur only if we change the screen orientation and the activity is not permanently destroyed, right? But if we navigate away, the viewModel will be destroyed along with the activity?

  • @pyaesonehan19
    @pyaesonehan19 7 หลายเดือนก่อน

  • @abada-s
    @abada-s ปีที่แล้ว

    Do you know why there is no context in desktop apps, for example all I need to read/write a file is to create a File object and pass the path then create something wraps that File object

    • @cursedfunction
      @cursedfunction ปีที่แล้ว

      Context, as described in this video, is an Android specific paradigm. You could create your own concept of “Context” in a desktop application.

  • @DušanPolák-t5p
    @DušanPolák-t5p 9 หลายเดือนก่อน

    6:25

  • @expeknow
    @expeknow ปีที่แล้ว

    Learnt too many things from you

  • @tomcat77798
    @tomcat77798 ปีที่แล้ว

    Waht's your Android Studio Theme?

  • @AshutoshDwivedi-k5m
    @AshutoshDwivedi-k5m ปีที่แล้ว

    I came here to learn but now only watching your videos beacuse you are very handsome 😅 charming

  • @SBYJokowiJKIndonesia
    @SBYJokowiJKIndonesia ปีที่แล้ว

    Tidak masalah ANDROID GENOSIDA di Uji Coba di Indonesia,.kalau di butuhkan akan di perluas di seluruh negara dunia.😮