You may find Context in Android app development is confusing. For example, which one you should use? Before answering that, let’s look at the Context class diagram below to understand its relationship with other classes/components. Context Class Diagram From the class diagram above, you can tell Activity, Service and Application inherits/extends Context indirectly. As you can see, there are ContextThemeWrapper …
Read More »Flow, SharedFlow, StateFlow Class Diagram
This is part of the asynchronous flow series: Since I’ve been playing around with asynchronous Kotlin flow in Android, I have to admit that the class relationship between all these flow classes is not clear even though I know how to use them. Therefore, I drew this diagram below to get me to understand them. There are a few things …
Read More »