WeatherApp is a modern and simple Android application that displays weather information using the OpenWeather API.
It is built with Material Design 3 and features attractive icons and graphics for a better user experience.
- Search for any city and display current weather data
- Shows:
- 🌅 Sunrise and sunset time
- 🌡 Minimum and maximum temperatures
- 💧 Humidity
- 🌬 Wind speed
- 🌊 Sea level / pressure
- Beautiful gradient background
- Built with Material 3 and CardView
- Weather condition icons
- Fully responsive design (works on both phones and tablets)
- Android Studio Ladybug or newer
- Minimum minSdkVersion 21
- A free API key from OpenWeather
- Internet connection
-
Clone the repository: git clone https://github.com/AliJohari05/weather-app.git
-
Open the project in Android Studio.
-
Add your API key:
OpenMainActivity.ktand find the line: val request = Request.Builder() .url("https://api.openweathermap.org/data/2.5/weather?q=$cityName&appid=YOUR_API_KEY") ReplaceYOUR_API_KEYwith your own API key. -
Run the app on an emulator or physical device.


