In this talk, I am talking about onActivityResult in Android development, starting an Activity and receiving the result. I am introducing some approaches and some hints to make it more easy.
intent = … val (resultCode, _) = startIntent(intent) if (resultCode != Activity.RESULT_OK) { return@launch } } doPurchase(itemId) } } private suspend fun startIntent(intent: Intent): Result { } KOTLIN COROUTINE Execution can be suspended here Can be resumed from here?