This is a basic weather app developed for Android using Java. The app provides users with current weather information for a specified location using data from a weather API. It demonstrates how to make API calls, parse JSON data, and display the information in a user-friendly manner.
-
Current Weather Display: The app displays the current weather conditions including temperature, humidity, wind speed, and weather description for the chosen location.
-
Location Search: Users can search for weather information by entering the name of a city or location.
-
API Integration: The app integrates with a weather API to fetch real-time weather data for the selected location.
Follow these instructions to get a copy of the project up and running on your local machine.
- Android Studio: Download and install the latest version of Android Studio from the official website.
-
Clone the repository to your local machine using the following command:
git clone https://github.com/MosiaPuseletso/android_weatherApp.git
-
Open Android Studio and select "Open an existing Android Studio project.
cd android_weatherApp/WeatherApp -
Navigate to the directory where you cloned the repository and select the project folder.
-
Wait for Android Studio to sync the project and download the necessary dependencies.
Connect your Android device or use an emulator to run the app. Click the "Run" button in Android Studio, and the app will be installed and launched on the chosen device/emulator.
- Java - Programming language used
- Android Studio - IDE used for development
- Retrofit - HTTP client for API calls
- Gson - Library for JSON parsing
- Thanks to WeatherAPI for providing the weather data.
- This project was inspired by the need to understand API integration in Android apps.
This project is licensed under the MIT License - see the LICENSE file for details.
This simple weather app serves as a starting point for Android developers looking to create apps that integrate with external APIs. It covers the basics of API calls, JSON parsing, and UI design, and can be expanded upon to include more advanced features and functionalities. Feel free to contribute to this project by submitting pull requests or reporting issues. Happy coding!