Kotlin Coroutines 1.4 is here, as is another chance to stave off boredom.

StateFlow

Imagine we have a fragment that is interested in a todo task from the classic JsonPlaceHolder API.

Since we are working with flow, we need to launch a coroutine to collect it.

A small button willโ€ฆ


Flow is fun to play around with.

In short, it represents a cold stream of values. Kind of like my typical afternoon at the pub drinking a stream of too many cold ones.

Aside from looking at memes all day we might as well write some code.

FlowGuy seemsโ€ฆ


๐Ÿค–::execute order process death::๐Ÿค–

The android framework has a curious case of killing any app thatโ€™s in the background for more than a few minutes.

Take this for example:

The RedditViewModel is responsible for fetching a post from Reddit while the calling activity/fragment is responsible for observing the redditPostData variable.

Once the postโ€ฆ


This is part of a series head-scratching my way into coroutines. It can be read as a standalone although you might be missing out on some spicy memes here and here.

Testing ViewModels without losing the will to live

A ViewModel โ€œsitsโ€ quite close to the activity/fragment. โ€ฆ


Or how to pretend you know what you are doing on pull requests

This is part of a series head-scratching my way into coroutines. It can be read as a standalone although you are missing out on some stale memes on the other one:

Where we left off

The little repository class fetching a Reddit post works fine (?!) and your pull request is ready.

Holโ€™โ€ฆ


Concurrency on Android has been weird to say the least.

By default, Android handles UI work on the main thread. Any operation that does not โ€œtouchโ€ the UI should preferably be off-loaded to someone else.

A lot of effort has gone in fixing that issue in the past: Executors, Handlersโ€ฆ


Or how to use MVVM to get some cats so your code is not all over the place

This is the second mem- ehhh part in the โ€œ๐Ÿ‘๐Ÿ‘ Retrofit review ๐Ÿ‘๐Ÿ‘โ€ series.

You can find part 1 here:

Source code:

Previously on Meme Review

After copy pasting everything like any self respecting Stack Overflow user, we reached a point where everything works.. but looks kind of.. meh.

Everything is thrown inโ€ฆ


Or how to load images from the internets when you donโ€™t know what you are doing

This is a spin-off to the โ€œRetrofit reviewโ€ article I wrote a while back.

You can find it here:

What is Glide anyway?

Glide is an image loading library developed by people smarter than me.(granted, Iโ€™m not very bright)

You can check out the official docs (https://github.com/bumptech/glide) โ€ฆ


Or how to use Kotlin + RxJava to get some cats

This is a spin-off of the โ€œAndroid RxJava in 5 minutesโ€ article I wrote a while back and has stuff that you might find useful for this one.

You can find it here:

What is an API anyway?

It seems like everyone and their mother is running an API on the internets. If you areโ€ฆ


This is a kind-of a sequel of the โ€œAndroid RxJava in 5 minutesโ€ article I wrote a while back and has stuff that you might find useful for this one.

You can find it here:

Research says that 50% of what you need to know as an android dev isโ€ฆ

Costa Fotiadis

Android dude @JustEatUK

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store