This application is a simple weather forecast application which is buit with MVVM architecture using the APIs available from openweathermap. This application includes Google places implimention to select the place for which the weather forecast is needed. A mapview of the selected location will be displayed in the background of the screen.
As usual, you get started by cloning the project to your local machine:
- Create a project in https://console.developers.google.com/ and enable maps and places libraries.
- Create an API key to access maps and places.
- Sign in to https://openweathermap.org/ and create an API key.
https://console.developers.google.com/
https://openweathermap.org/
Now that you have cloned the repo:
-
Open the project up in Android Studio.
-
Copy the API key from Google developer console and replace it with the key "google_maps_key" in strings.xml.
-
Copy the API key from Openweathermap console and replace it with the key "weather_forecast_id" in strings.xml.
-
Clean the Project.
At this point, you should be able to build and run the project in the Android device or emulator.
App is currently built to work with Android API 28. However, minimum SDK support is 21.
- Show the forecast by getting the users current location.
- Option can be provided to display multiple locations forecasts, so the user can see the forecast of multiple locations on Dashboard.
- Option for the user to select Favourite locations.
- We can include a switch to select between Degrees and Farenheit.
- Viewpager on the details screen so that the user can swipe through the pages.
- Integrate push notifications to send importatnt notifications based on the user favourite locations.
- Graphical representation of hourly forecast.
- Navigating the user to indepth details screen showing all the parameters given by the API.
- Retain the last API response and show to the user even when internet is not available.
- Implement Data Binding.
- Improve user experience and design.