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
- 01
Set up networking layer
~2hConfigure Retrofit with a weather API service interface and Moshi/Gson converter.
- 02
Build the search screen
~1.5hCreate a Compose UI with a city search field and a button to trigger the API call.
- 03
Handle async state
~2hUse coroutines and a ViewModel with StateFlow to manage loading, success, and error UI states.
- 04
Display forecast data
~2hBuild a scrollable list showing daily forecast cards with icons and temperatures.
- 05
Add error handling and caching
~1.5hHandle network failures gracefully and cache the last successful result locally.
Resources
- DocsKotlin Docs
Ready to build this?
Get a GitHub repo and start building. Your AI reviewer checks each step as you go.
Tech stack