Skip to content

A simple weather forecast app built using Java and Android Studio. It fetches real-time weather data from OpenWeatherMap API and displays the current weather, 5-day forecast, and other details. Users can search for weather by location and view the weather information in a user-friendly interface.

Notifications You must be signed in to change notification settings

malinthaUKA/WeatherApp

Repository files navigation

launchericon

Weather App

This is a simple Weather App built using Android Studio with Java and XML. The app fetches weather data from the OpenWeatherMap API and displays it to the user. The app also utilizes the Android Volley library for making network requests.

Features

  • Get current weather information for any city.
  • Display weather details such as temperature, humidity, wind speed, etc.

Requirements

  • Android Studio
  • Android 7 Nougat (API 24) or higher
  • OpenWeatherMap API key

Dependencies

The app uses the following dependencies:

dependencies {
    implementation 'com.android.volley:volley:1.2.1'
}

Installation

  1. Clone the repository:

git clone https://github.com/malinthaUKA/WeatherApp.git

  1. Open the project in Android Studio.
  2. Add your OpenWeatherMap API key to the MainActivity.java file:

private final String appid = "YOUR_API_KEY_HERE";

  1. Build and run the project on an Android device or emulator.

Usage

  • When the app is launched, it will request permission to access the device's location. Allow the app to access the location.

  • To search for the weather in a different city, click the "Click Here to Get Weather For New City" button and enter the city name.

Screenshots

Screenshot_20240605-190826_Weather_App

Screenshot_20240605-190853_Weather_App

Screenshot_20240605-190845_Weather_App

About

A simple weather forecast app built using Java and Android Studio. It fetches real-time weather data from OpenWeatherMap API and displays the current weather, 5-day forecast, and other details. Users can search for weather by location and view the weather information in a user-friendly interface.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages