This Weather App is designed to provide real-time weather information for specific cities. It displays the weather details, cloud percentage, and weather icons for the chosen city. The app utilizes Retrofit for network calls and Gson Converter to convert the API response into Java objects. Moreover, it incorporates an SQLite database to store the last searched city weather.
- Get real-time weather details for specific cities
- Display cloud percentage and weather icons
- Store last searched city weather using SQLite database
- Developed entirely in Java and XML
- Utilizes WeatherAPI.com's API to fetch weather details
- Android Studio version X.X.X or later
- Minimum Android API level XX (XX% of devices currently support this)
- Clone the repository from GitHub.
- Open Android Studio.
- Select "Open an existing Android Studio project."
- Navigate to the location where you cloned the repository and click "OK."
- Wait for the project to sync and build.
- Connect your Android device or use an emulator.
- Click on the "Run" button to install and launch the app on your device/emulator.
- Upon launching the app, you'll see the home screen displaying a search bar and a button to initiate the search.
- Enter the city name you want to check the weather for in the search bar.
- Click on the "Search" button.
- The app will fetch real-time weather details from WeatherAPI.com for the specified city.
- Weather information, cloud percentage, and weather icons will be displayed on the screen.
- The app will also store the last searched city's weather details in the SQLite database for future reference.
- Retrofit - link to Retrofit
- Gson Converter - link to Gson Converter
- WeatherAPI.com API - link to WeatherAPI
Include some screenshots of your app here to showcase its features.
- There might be occasional connectivity issues when fetching weather data due to network conditions.
- The app's UI could be enhanced and improved to provide a better user experience.
- Implement a more user-friendly UI with modern design principles.
- Add more features like weather forecasts for upcoming days.
- Allow users to save multiple cities and switch between them easily.
- Incorporate user settings to customize the app's behavior and appearance.
- Your Name - Developer
This project is licensed under the MIT License. Feel free to use, modify, and distribute the code as per the terms of the license.
- Thanks to WeatherAPI.com for providing the weather data API.
- Thanks to the developers of Retrofit and Gson Converter for their excellent libraries.
- Hat tip to anyone whose code was used as inspiration for this project.
This readme template provides a basic structure to get you started. Feel free to customize it further based on your app's specific details and needs. Happy coding!