Skip to content

AnaghaSujith/Wthr-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"/>

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages