8000 GitHub - sommayah/PopularMovies2: stage 2 popular movies
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

sommayah/PopularMovies2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 

Repository files navigation

PopularMovies2

This is the second assignment in the Udacity Android nanodegree. It adds on the first assignment features like supporting different devices layouts and persistent storage.

Features

User Interface - Layout

  • Movies are displayed in the main layout via a grid of their corresponding movie poster thumbnails
  • UI contains an element (e.g., a spinner or settings menu) to toggle the sort order of the movies by: most popular, highest rated, and favorites
  • UI contains a screen for displaying the details for a selected movie
  • Movie Details layout contains title, release date, movie poster, vote average, and plot synopsis.
  • Movie Details layout contains a section for displaying trailer videos and user reviews
  • Tablet UI uses a Master-Detail layout implemented using fragments. The left fragment is for discovering movies. The right fragment displays the movie details view for the currently selected movie.

User Interface - Function

  • When a user changes the sort criteria (most popular, highest rated, and favorites) the main view gets updated correctly.
  • When a movie poster thumbnail is selected, the movie details screen is launched [Phone] or displayed in a fragment [Tablet]
  • When a trailer is selected, app uses an Intent to launch the trailer
  • In the movies detail screen, a user can tap a button(for example, a star) to mark it as a Favorite

Network API Implementation

  • In a background thread, app queries the /discover/movies API with the query parameter for the sort criteria specified in the settings menu. (Note: Each sorting criteria is a different API call.)
  • This query can also be used to fetch the related metadata needed for the detail view.
  • App requests for related videos for a selected movie via the /movie/{id}/videos endpoint in a background thread and displays those details when the user selects a movie.
  • App requests for user reviews for a selected movie via the /movie/{id}/reviews endpoint in a background thread and displays those details when the user selects a movie.
  • Movies api is fetched from here
  • you have to get your own api and plug it in ApiKey.java here: public static final String API_KEY = "000";

Data Persistence

  • App saves a “Favorited” movie to SharedPreferences or a database using the movie’s id.
  • When the “favorites” setting option is selected, the main view displays the entire favorites collection based on movie IDs stored in SharedPreferences or a database.

ContentProvider

  • App persists favorite movie details using a database
  • App displays favorite movie details even when offline
  • App uses a ContentProvider to populate favorite movie details

Sharing functionality

  • Movie Details View includes an Action Bar item that allows the user to share the first trailer video URL from the list of trailers
  • App uses a share Intent to expose the external youtube URL for the trailer

About

stage 2 popular movies

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0