WeatherAppUpdate is an Android application that provides real-time weather information based on the user's location or city input. The app fetches weather data using an external weather API and presents the information in a user-friendly interface.
- Current Weather Data: Displays the current temperature, humidity, wind speed, and weather description
- City Search: Users can search for weather by city name
- Responsive Design: Optimized for both phone and tablet screens
- Unit Selection: Option to toggle between metric (Celsius) and imperial (Fahrenheit) units
- Error Handling: Gracefully handles errors such as invalid city names or API issues
- Kotlin
- Retrofit2 (Networking)
- Gson (JSON Parsing)
- Glide (Image Loading)
- OpenWeatherMap API
Before running the app, ensure you have:
- Android Studio
- JDK (Java Development Kit)
- Physical or virtual Android device for testing
git clone https://github.com/satdevkumar01/WeaterAppUpdate.git
- Launch Android Studio
- Select "Open an Existing Project"
- Navigate to the cloned project directory
- Sign up at OpenWeatherMap
- Generate an API key
- Replace the placeholder in
Constants.kt
:
const val API_KEY = "YOUR_API_KEY"
- Connect an Android device or start an emulator
- Click "Run" in Android Studio
- Open the app
- Search for a city by entering its name
- View automatic location-based weather (ensure location permissions are granted)
- Toggle between Celsius and Fahrenheit units
- "City not found":
- Check city name spelling
- Verify city exists in OpenWeatherMap database
- API Key Problems:
- Confirm API key is correctly added
- Ensure key is valid and not expired
- Location Issues:
- Grant location permissions
- Ensure GPS is enabled
- Check emulator location settings
- Multiple city search
- Extended weather forecast
- Dark mode support
- Improved error messaging
- Weather data update animations
- Fork the repository
- Create a new branch
git checkout -b feature-branch
- Commit your changes
git commit -am 'Add new feature'
- Push to your branch
git push origin feature-branch
- Create a Pull Request
This project is licensed under the MIT License. See the LICENSE file for details.
For any queries or support, please open an issue in the GitHub repository.