Created
October 14, 2020 19:23
-
-
Save shalperin/d36087cb14e3cd2e4e7d67fc9135d184 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CoroutineScope(Dispatchers.Main).launch{ | |
var html:String? = null | |
withContext(Dispatchers.IO){ | |
html= flickrApi.fetchContents() | |
} | |
binding.myTextView.text = html | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment