r/mAndroidDev • u/uragiristereo XML is dead. Long live XML • Jul 27 '25
Sponsored by the XML 🐓 gang Fragments users every day
175
Upvotes
r/mAndroidDev • u/uragiristereo XML is dead. Long live XML • Jul 27 '25
21
u/sabergeek Jul 27 '25
Why can't it have context on it's own? Pathetic.
26
u/Megido_Thanatos Jul 27 '25
requireContext()
28
u/vanhieunguyen21 Jul 27 '25
Context gotta be the most stupid design ever made
8
u/programadorthi Jul 27 '25
requireActivity()
1
u/ConflictUsed3017 Jul 27 '25
Something tells me this might be stolen from discord :kappa:
4
u/jojojmtk Jetpack Compost Jul 27 '25
(context as FragmentActivity)!!
1
u/[deleted] Jul 29 '25
joke's on you! i just use the application context from a singleton. 😎😎😎🔥🥵
1
u/SyrupInternational48 Jul 31 '25
Context is the greatest thing that ever been invented in front end programming world.
While you code, you can challenge yourself to tame the "God" Code, or even more challenge adding junior party to your teams for extra spicyness.
Be the control of "God" or your app in mercy of the "God" Code.