Skip to content

Latest commit

 

History

History
52 lines (39 loc) · 1.28 KB

File metadata and controls

52 lines (39 loc) · 1.28 KB

Wthr App

A simple Android app built with Kotlin that fetches and displays the current weather of any city using the OpenWeatherMap API.

Features

  • Enter any city name and get:
    • Current temperature in °C
    • Weather description
    • Wind speed
  • Simple UI with clean output
  • Retrofit for network calls
  • XML layout
  • Error handling for invalid inputs

Tech Stack

  • Kotlin
  • Android SDK
  • Retrofit2
  • OpenWeatherMap API
  • ViewBinding (optional)

How to Run

  1. Clone this repository

    git clone https://github.com/AnaghaSujith/Wthr-app.git
  2. Open with Android Studio

  3. Add your API key

    • Go to MainActivity.kt
    • Replace the placeholder with your OpenWeatherMap API key: -val API_KEY = "3a3fe9945a38edc37c34319214f993cd"
  4. Run the app on emulator or physical device.

App UI

image

API Reference

    OpenWeatherMap API docs: https://openweathermap.org/current

Notes

  • You need an active internet connection to fetch weather data.
  • Make sure your app has INTERNET permission in AndroidManifest.xml:
<uses-permission android:name="android.permission.INTERNET"/>