Skip to content

Latest commit

 

History

History
34 lines (28 loc) · 2.19 KB

README.md

File metadata and controls

34 lines (28 loc) · 2.19 KB

Android Weather App

By Meagan Olsen

Instructions

  1. Navigate to repository
  2. Clone locally git clone https://github.com/olsenme/WeatherApp.git
  3. Obtain Open Weather Map API key here
  4. Open up project in Android studio
  5. Navigate to app->src->main->java->com->example->android->weatherwithsqlite->utils->OpenWeatherMapUtils.java
  6. Replace OWM_FORECAST_APPID with your api key in between "".
  7. Click "Run" at the top.

Discussuion

I used Java,Sqlite, and OpenWeatherMap API to create this app.

Requirements

  • Build a baisc Android App to display scrollable weather data for a given location displayed at the top of the main page of the application.
  • Displayed Data is pulled from Open Weather Map API's 5-day forecast and includes: date and time of calculation(UTC),the temperature(Kelvin, Metric),a genreal description of the weather.
  • A progress bar is displayed while data is feteched and hidden after it is fetched. If an error occurs while featching data, an informative error message is displayed.

  • Handle user clicks on indivividual items in the forecast list.
  • When an item is clicked on,a new activity is started, which displays a deatiled forecast with a description of the forecast item.

  • Incorates a feature into the action bar which allows user to see a map of the location for which the forecast is displayed.
  • Incorates a feature into the action bar which allows user to share the contents of the detailed forecast.
  • Handle screen rotations without reloading weather data.
  • Handles viewing preferences for weather units(Imperial,Metric,Kelvin) and weather location(any valid city entry).
  • saves previously viewed locations in SQLite database.
  • Displays saved locations in navgation drawer in naviation bar on Main page.
  • Handles clicks on a previously saved location from the navigation drawer and updates current viewing location.
  • Provides a dialog for which a new location can be added to the database from within the navigation drawer.