Coder Social home page Coder Social logo

popmovies's Introduction

#GrowWithGoogle Android Development Project:
PopMovies App

For the second (and third) project of the Grow With Google Developer Scholarship Program (and conjointly Udacity’s Android Development Nanodegree program), students were asked to build and design a movie discovery app (written in Java) from scratch. This app makes use of TheMovieDB API and the YouTube Player API for Android.

The project was completed in two stages:

  • (1) fleshing out the UX and
  • (2) polishing the UI.

User Story Map

Learning Objectives

Thinking about UX

This project hones in on several useful skills – implementing custom adapters (and fragment classes), configuring child menus, and launching intents to build out a User Experience that meets a host of needs for the end user’s session.

Implementing the persistent search functionality was a great learning experience, as it led to more insight about the logistics of filtering a RecyclerView from within an adapter.

Network Services and Optimizing for Offline Mode

  • I opted in for extending this project’s Content Provider to persist favorite movie data to the app's database and making these titles available offline. I also experimented with the Volley http library in order to speed up network requests.

Design and Responsive UI

  • Instead of making a landscape layout for this app, I implemented a helper function that takes into account device orientation and expands/contracts the number of grid columns accordingly.
  • I also wanted to extend the user session time, and subsequently used the YouTube Player API to stream a trailer from within the app, itself, rather than launching an intent to the external YouTube service. To make the details page cleaner, I used a pager and tabs to segment general info, the primary movie trailer and RecyclerView list of reviews. I designed collapsible card views for reviews that exceeded 5 lines.

Using Logger

This project illuminated just how invaluable logging your code can be. Much like console.log in JavaScript, using the logger for this project helped with debugging code at various points.

Versioning and Dependencies

Target SDK Version: 27

Dependencies:

  • com.android.support:appcompat-v7:27.1.1
  • com.android.support:recyclerview-v7:27.1.1
  • com.android.support:design:27.1.1
  • com.android.support:cardview-v7:27.1.1
  • com.squareup.picasso:picasso:2.5.2
  • com.uncopt:android.justified:1.0
  • com.android.volley:volley:1.1.0
  • com.android.support.constraint:constraint-layout:1.1.0
  • com.android.support:support-v4:27.1.1
  • libs/YouTubeAndroidPlayerApi.jar

App Repositories:

  • MavenCentral

Android Studio Version: 3.1.2 (Stable Release)

Gradle Build Tools Version: 3.1.2

Note: To run this project on your local machine, you will have to add you your own MovieDB and YouTube Player API keys to a KeyStore.java file.

References

Several tutorials inspired this project:

popmovies's People

Contributors

codeamt avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.