# Kotlin Flow for Android: Getting Started | raywenderlich.com

**URL:** <https://forums.kodeco.com/t/kotlin-flow-for-android-getting-started-raywenderlich-com/112603>\
**Category:** 🎓 Courses & Articles\
**Created:** [June 19, 2020, 7:57am UTC](https://forums.kodeco.com/t/kotlin-flow-for-android-getting-started-raywenderlich-com/112603 "2020-06-19T07:57:14Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![ddjermanovic](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/ddjermanovic/32/110629_2.png) [@ddjermanovic](https://forums.kodeco.com/u/ddjermanovic)\
**Post date:** [June 19, 2020, 7:57am UTC](https://forums.kodeco.com/t/kotlin-flow-for-android-getting-started-raywenderlich-com/112603/1 "2020-06-19T07:57:14Z")

</div>

In this tutorial, you’ll learn about the basics of Kotlin Flow, and you’ll build an Android app that fetches weather forecast data using Flow.

* * *
This is a companion discussion topic for the original entry at [https://www.raywenderlich.com/9799571-kotlin-flow-for-android-getting-started](https://www.raywenderlich.com/9799571-kotlin-flow-for-android-getting-started)

---

<div class="post-metadata">

**Author:** ![prdp89](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/prdp89/32/95539_2.png) [@prdp89](https://forums.kodeco.com/u/prdp89)\
**Post date:** [February 16, 2021, 1:04pm UTC](https://forums.kodeco.com/t/kotlin-flow-for-android-getting-started-raywenderlich-com/112603/3 "2021-02-16T13:04:28Z")

</div>

Hi Dean,

Thanks for writing such a beautiful App to explain Kotin flow. Could you please some resources to write the Android Test for Flow and Coroutines (for ViewModel and Repository layer).

Thanks,  
Pardeep Sharma.

---

<div class="post-metadata">

**Author:** ![tim\_miller](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/tim_miller/32/111029_2.png) [@tim\_miller](https://forums.kodeco.com/u/tim_miller)\
**Post date:** [June 10, 2021, 3:52pm UTC](https://forums.kodeco.com/t/kotlin-flow-for-android-getting-started-raywenderlich-com/112603/4 "2021-06-10T15:52:59Z")

</div>

I can’t seem to get any outputs in Android Studio 4.2.1 when I run the main function.

---

<div class="post-metadata">

**Author:** ![filipebezerra](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/filipebezerra/32/95977_2.png) [@filipebezerra](https://forums.kodeco.com/u/filipebezerra)\
**Post date:** [July 7, 2021, 8:14pm UTC](https://forums.kodeco.com/t/kotlin-flow-for-android-getting-started-raywenderlich-com/112603/5 "2021-07-07T20:14:04Z")

</div>

Here are some resources to test flow

- [Android での Kotlin Flow のテスト &nbsp;|&nbsp; Android デベロッパー &nbsp;|&nbsp; Android Developers](https://developer.android.com/kotlin/flow/test)
- [Lessons learnt using Coroutines Flow in the Android Dev Summit 2019 app | by Manuel Vivo | Android Developers | Medium](https://medium.com/androiddevelopers/lessons-learnt-using-coroutines-flow-4a6b285c0d06)

---

<div class="post-metadata">

**Author:** ![filipebezerra](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/filipebezerra/32/95977_2.png) [@filipebezerra](https://forums.kodeco.com/u/filipebezerra)\
**Post date:** [July 7, 2021, 8:14pm UTC](https://forums.kodeco.com/t/kotlin-flow-for-android-getting-started-raywenderlich-com/112603/6 "2021-07-07T20:14:35Z")

</div>

continuing…

- Sunflower demo app is a good case which also demonstrates testing: [GitHub - android/sunflower: A gardening app illustrating Android development best practices with Android Jetpack.](https://github.com/android/sunflower)
- Android Dev Summit app was open sourced and also it’s a great resource on how to use Flow and how to test it: [GitHub - google/iosched at adssched](https://github.com/google/iosched/tree/adssched)

---

<div class="post-metadata">

**Author:** ![filipebezerra](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/filipebezerra/32/95977_2.png) [@filipebezerra](https://forums.kodeco.com/u/filipebezerra)\
**Post date:** [July 7, 2021, 8:15pm UTC](https://forums.kodeco.com/t/kotlin-flow-for-android-getting-started-raywenderlich-com/112603/7 "2021-07-07T20:15:22Z")

</div>

finally …

- Tivi is a more in depth app which demonstrate some advanced flow use cases and testing: [GitHub - chrisbanes/tivi: Tivi is a work-in-progress TV show tracking Android app, which connects to Trakt.tv. It is still in its early stages of development and currently only contains two pieces of UI. It is under heavy development.](https://github.com/chrisbanes/tivi)
- and more: [Medium](https://medium.com/androiddevelopers/search?q=flow)

---

<div class="post-metadata">

**Author:** ![androidlearner](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/androidlearner/32/81494_2.png) [@androidlearner](https://forums.kodeco.com/u/androidlearner)\
**Post date:** [September 26, 2021, 5:55am UTC](https://forums.kodeco.com/t/kotlin-flow-for-android-getting-started-raywenderlich-com/112603/8 "2021-09-26T05:55:36Z")

</div>

Same problem, hitting play on the main function does nothing.

---

<div class="post-metadata">

**Author:** ![androidlearner](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/androidlearner/32/81494_2.png) [@androidlearner](https://forums.kodeco.com/u/androidlearner)\
**Post date:** [September 26, 2021, 6:08am UTC](https://forums.kodeco.com/t/kotlin-flow-for-android-getting-started-raywenderlich-com/112603/9 "2021-09-26T06:08:13Z")

</div>

Only solution I could find is Installing IntelliJ IDEA Community instead.  
Open the project in that then I get an error about JDK configuration and click the Use settings JDK. The main.kt file is under src-\>main-\>kotlin and now the Play button works.

---

<div class="post-metadata">

**Author:** ![neerajagandla](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/neerajagandla/32/100950_2.png) [@neerajagandla](https://forums.kodeco.com/u/neerajagandla)\
**Post date:** [November 16, 2021, 3:45am UTC](https://forums.kodeco.com/t/kotlin-flow-for-android-getting-started-raywenderlich-com/112603/10 "2021-11-16T03:45:11Z")

</div>

I have a few questions in understanding Kotlin flows. Please help me clarify these things:

1. If we don’t have to send multiple values(in case we only use REST APIs), in that case what is the advantage of using Kotlin flows?
2. Is the API used in the app a streaming API?
3. If so, how is the data sent from the API whenever there is a change received in the app?
4. How do we generally integrate streaming APIs in an android app if we use/don’t use Kotlin flows?

---

<div class="post-metadata">

**Author:** ![dharmie](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/dharmie/32/102075_2.png) [@dharmie](https://forums.kodeco.com/u/dharmie)\
**Post date:** [September 13, 2022, 4:12pm UTC](https://forums.kodeco.com/t/kotlin-flow-for-android-getting-started-raywenderlich-com/112603/11 "2022-09-13T16:12:09Z")

</div>

The tutorial was great and insightful. However, it seems the metaweather API is no longer accessible or available. Just a piece of side information.
