Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mrcodetastic/kotlin-android-coroutine-async-fuel-example

An example Android Studio project which uses Kotlin Coroutines for Async HTTP/HTTPs calls to the UI. Based of what I could see as being 'better practice' on the internet
https://github.com/mrcodetastic/kotlin-android-coroutine-async-fuel-example

Last synced: 10 days ago
JSON representation

An example Android Studio project which uses Kotlin Coroutines for Async HTTP/HTTPs calls to the UI. Based of what I could see as being 'better practice' on the internet

Awesome Lists containing this project

README

        

# Android + Kotlin + Fuel + Async + Coroutines
My attempt to understand what the hell this is and how it can be used to create an Android application according to 2021 basic standards.

Example Android Studio project does nothing but creates two Coroutines to different Dispatch handlers.

That is, constantly update the main UI screen with a new number, whilst also allowing HTTP query on the other.

# Useful reading
* https://github.com/mitchtabian/Kotlin-Coroutine-Examples/blob/master/app/src/main/java/com/codingwithmitch/coroutineexamples/MainActivity.kt
* https://medium.com/better-programming/asynchronous-programming-with-kotlin-coroutines-5b3417f53ac6
* https://www.youtube.com/watch?v=t-3TOke8tq8
* https://www.youtube.com/watch?v=2QInrEaXyMo
* https://www.youtube.com/watch?v=C38lG2wraoo

![It's better in real life](Screenshot_1.png)