KotlinintermediatemobileAI generated

Android Weather App with Retrofit

Build an Android app that fetches current weather and a 5-day forecast for a searched city using a public weather API, displaying results with Jetpack Compose. Learners practice networking with Retrofit, coroutines, and handling loading/error states in the UI.

Estimate
~9h
Steps
5
Completed by
0
Proposed by
codeseed.app

Jetpack Compose · Retrofit · Coroutines

Project roadmap

  1. 01

    Set up networking layer

    ~2h

    Configure Retrofit with a weather API service interface and Moshi/Gson converter.

  2. 02

    Build the search screen

    ~1.5h

    Create a Compose UI with a city search field and a button to trigger the API call.

  3. 03

    Handle async state

    ~2h

    Use coroutines and a ViewModel with StateFlow to manage loading, success, and error UI states.

  4. 04

    Display forecast data

    ~2h

    Build a scrollable list showing daily forecast cards with icons and temperatures.

  5. 05

    Add error handling and caching

    ~1.5h

    Handle network failures gracefully and cache the last successful result locally.

Resources

Ready to build this?

Get a GitHub repo and start building. Your AI reviewer checks each step as you go.

~9h · 5 steps

Tech stack

Jetpack ComposeRetrofitCoroutines