I have had a tough time managing retrofit calls on android while making a REST calls to display something on UI. When the activity/fragment is destroyed you don't need the result anymore. You simply need to cancel that call else it may leak your activity.
2 posts tagged with "kotlin"View All Tags
It was May 17, 2017. I was on my desk with my laptop, to watch the live stream of Google I/O 2017. As always, I was waiting for the Google I/O Keynote, for some exciting announcements. And to my surprise, they announced official support for the language Kotlin on Android.