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.
- Get current weather information for any city.
- Display weather details such as temperature, humidity, wind speed, etc.
- Android Studio
- Android 7 Nougat (API 24) or higher
- OpenWeatherMap API key
The app uses the following dependencies:
dependencies {
implementation 'com.android.volley:volley:1.2.1'
}
- Clone the repository:
git clone https://github.com/malinthaUKA/WeatherApp.git
- Open the project in Android Studio.
- Add your OpenWeatherMap API key to the MainActivity.java file:
private final String appid = "YOUR_API_KEY_HERE";
- Build and run the project on an Android device or emulator.
-
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.



