This project was the first Android app I worked on, and it allows users to see the weather at their current location, including the outdoor temperature, weather type, and wind speed. Additionally, it displays the device's environmental sensor data. This includes the ambient air temperature, illuminance, ambient air pressure, and ambient relative humidity.
The app can be used in any country, as it supports both the metric and imperial systems. Users can switch between the displayed units by clicking in the upper-right corner and selecting either "Metric" or "Imperial." This affects the units for temperature and wind speed. In the metric system, temperature is displayed in Celsius and wind speed in km/h. In the imperial system, temperature is displayed in Fahrenheit and wind speed in mph.
Note: Whether you see the light mode or dark mode screenshots of the app depends on your device's theme.
- Install Android Studio and
clone
this project - Generate an OpenWeather API key for current weather
- In the project's root directory that also contains
local.defaults.properties
, create a file calledsecrets.properties
- Paste the following line of code into
secrets.properties
and replaceYOUR_API_KEY
with your own API key:OPEN_WEATHER_API_KEY=YOUR_API_KEY
- Build the APK
- Install the APK on your Android device