WeatherNow is an Android application based on WeatherAPI.com web-service that provides real-time weather updates for your current location. The app features a sleek UI, a home screen widget, and allows users to search and set favorite locations for quick weather checks.
- Real-time weather updates based on your current location
- Weather info for a searched world location
- Favorite locations for quick weather checks
- Home screen widget
- Clone the repository:
git clone https://github.com/pie-catt/weathernow.git
-
Open the project in Android Studio.
-
Obtain an API key from the weather service provider WeatherAPI.com.
-
Add your API key to the
res/values/strings.xml
file:
<string name="weather_api_key">YOUR_API_KEY_HERE</string>
- Build and run the app on your emulator or Android device.
To simulate the changing of the current location using the Android emulator, follow these steps:
-
Launch the app to get the current set location and fetch weather data.
-
Open the extended controls of the emulator.
-
Set a different location in the emulator's location settings.
-
In the app, tap the location icon to refresh the location and fetch the updated weather data for the new location.
Contributions are welcome! Please fork this repository, create a new branch, and submit a pull request with your changes.
This project is licensed under the MIT License. See the LICENSE
file for more details.