Async requests in Kotlin Android
I often get an error android.os.NetworkOnMainThreadException, when I try get info from some api. I know that this problem is related to the main android thread, but I don’t understand how to solve it – coroutines, async okhttp, or both? P.S I have a bad eng, sorry. My code: MainAtivity.kt class MainActivity: AppCompatActivity(), Alert {… Read More Async requests in Kotlin Android