Open in app

Sign In

Write

Sign In

Costa Fotiadis
Costa Fotiadis

166 Followers

Home

About

5 hours ago

Android Shorts (๐Ÿฉณ): WorkManager + Hilt

Add (more) dependencies โ€” Declare a dagger module Make it easy to inject the singleton WorkManager instance anywhere. Debug logging level is optional. Customize the application class We already declared the WorkConfiguration up above in the dagger module. Might as well use it. Fix up the manifest Declare a worker to try things out Assisted is the trick here. Use WorkManager anywhere

Android

1 min read

Android Shorts (๐Ÿฉณ): WorkManager + Hilt
Android Shorts (๐Ÿฉณ): WorkManager + Hilt
Android

1 min read


Published in Level Up Coding

ยทNov 8, 2020

StateFlow, SharedFlow, and the secret bus ๐ŸšŒ

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โ€ฆ

Android App Development

3 min read

StateFlow, SharedFlow and the secret bus ๐ŸšŒ
StateFlow, SharedFlow and the secret bus ๐ŸšŒ
Android App Development

3 min read


Oct 18, 2020

๐Ÿ‘Kotlin (over) Flow review ๐Ÿ‘

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โ€ฆ

Programming

4 min read

๐Ÿ‘Kotlin (over) Flow review ๐Ÿ‘
๐Ÿ‘Kotlin (over) Flow review ๐Ÿ‘
Programming

4 min read


Feb 16, 2020

๐Ÿ‘ ViewModel Saved State Review ๐Ÿ‘

๐Ÿค–::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โ€ฆ

Android

4 min read

๐Ÿ‘ ViewModel Saved State Review ๐Ÿ‘
๐Ÿ‘ ViewModel Saved State Review ๐Ÿ‘
Android

4 min read


Jan 21, 2020

Exercises in futility: Unit-testing LiveData, ViewModels and Coroutines

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. โ€ฆ

Android

3 min read

Exercises in futility: Unit-testing LiveData, ViewModels and Coroutines
Exercises in futility: Unit-testing LiveData, ViewModels and Coroutines
Android

3 min read


Jan 19, 2020

On testing โ€” Kotlin Coroutines

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: ๐Ÿ‘๐Ÿ‘ Kotlin Coroutines Review ๐Ÿ‘๐Ÿ‘ A callback storymedium.com Where we left off The little repository class fetching a Reddit post works fine (?!) and your pull request is ready.

Android

2 min read

On testingโ€Šโ€”โ€ŠKotlin Coroutines
On testingโ€Šโ€”โ€ŠKotlin Coroutines
Android

2 min read


Jan 19, 2020

๐Ÿ‘๐Ÿ‘ Kotlin Coroutines Review ๐Ÿ‘๐Ÿ‘

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โ€ฆ

Android

4 min read

๐Ÿ‘๐Ÿ‘ Kotlin Coroutines Review ๐Ÿ‘๐Ÿ‘
๐Ÿ‘๐Ÿ‘ Kotlin Coroutines Review ๐Ÿ‘๐Ÿ‘
Android

4 min read


Feb 24, 2019

Retrofit review : The sequel

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: ๐Ÿ‘๐Ÿ‘ Retrofit review ๐Ÿ‘๐Ÿ‘ Or how to use Kotlin + RxJava to get some catsmedium.com Source code: CostaFot/android--retro-electro Contribute to CostaFot/android--retro-electro development by creating an account on GitHub.github.com

Android

2 min read

Retrofit reviewย : The sequel
Retrofit reviewย : The sequel
Android

2 min read


Feb 19, 2019

๐Ÿ‘๐Ÿ‘ Glide review ๐Ÿ‘๐Ÿ‘

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: ๐Ÿ‘๐Ÿ‘ Retrofit review ๐Ÿ‘๐Ÿ‘ Or how to use Kotlin + RxJava to get some catsmedium.com 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) โ€ฆ

Android

3 min read

๐Ÿ‘๐Ÿ‘ Glide review ๐Ÿ‘๐Ÿ‘
๐Ÿ‘๐Ÿ‘ Glide review ๐Ÿ‘๐Ÿ‘
Android

3 min read


Feb 18, 2019

๐Ÿ‘๐Ÿ‘ Retrofit review ๐Ÿ‘๐Ÿ‘

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: Android RxJava in 5 minutes These go(o)gles do noffing!medium.com What is an API anyway? It seems like everyone and their mother is running an API on the internets. If you areโ€ฆ

Android

4 min read

๐Ÿ‘๐Ÿ‘ Retrofit review  ๐Ÿ‘๐Ÿ‘
๐Ÿ‘๐Ÿ‘ Retrofit review  ๐Ÿ‘๐Ÿ‘
Android

4 min read

Costa Fotiadis

Costa Fotiadis

166 Followers

Android dude @JustEatUK

Following
  • Citizen Warwick

    Citizen Warwick

  • Carlos Daniel

    Carlos Daniel

  • Karan Saimbhi

    Karan Saimbhi

  • Charles Scalfani

    Charles Scalfani

  • Florina Muntenescu

    Florina Muntenescu

See all (10)

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech