Android Memo 5

val hotData: LiveData<Int> = Model.sharedFlow.onEach {
Log.d("MY_FLOW", "hot flow on each: $it")
}.asLiveData()

or don’t trust your API

Motivation

"set": [
{},
{},
{}
]

java.lang.NullPointerException: Attempt to invoke interface method 'void android.view.inputmethod.InputConnection.closeConnection()' on a null object reference
at android.view.inputmethod.InputConnectionWrapper.closeConnection(InputConnectionWrapper.java:270

Sviatoslav Melnychenko

Android Developer @ Appsfactory

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store