CS Undergraduate | Associate Android Developer | Udacity Nanodegree Graduate | #Android, #Kotlin, #Java, #OpenSource, and technology lover.
See more
You pass UI-Context to someplace where all it needs is resource access or file system access but it is a long operation in the background. Say downloading a file. Now what can go wrong? Short Answer: Memory leak.
A type summarizes the common features of a set of objects with the same characteristics. We may say that a type is an abstract interface that specifies how an object can be used.
In case you are curious how shadows are rendered in Android, the relevant code is in the hwui package in AOSP — you can start looking at AmbientShadow.cpp.
hwui
AmbientShadow.cpp