Skip to content

Android App to browse Latest, Upcoming, Popular Movies.

Notifications You must be signed in to change notification settings

descifrador17/MovieBrowser

Repository files navigation

Initial Commit

This is an app that allows the user to browse through the latest movies This shows the basic layout of the app

This is The Movie Details Layout

The MovieDB API was used to gather all the information

Prerequisites

  1. Android Studio
  2. TheMovieDB API key
  3. Frameworks - Retrofit, RxJava(Kotlin)

Retrofit is a REST Client for Java and Android. It makes it relatively easy to retrieve and upload JSON (or other structured data) via a REST based webservice. In Retrofit you configure which converter is used for the data serialization.

RxJava is a Java VM implementation of ReactiveX a library for composing asynchronous and event-based programs by using observable sequences. The building blocks of RxJava are Observables and Subscribers. ... For example, Observables often don't start emitting items until someone subscribes to them.

HTTP is the way modern applications network. It’s how we exchange data & media. Doing HTTP efficiently makes your stuff load faster and saves bandwidth.

Glide is an Image Loader Library for Android developed by bumptech and is a library that is recommended by Google. It has been used in many Google open source projects including Google I/O 2014 official application. It provides animated GIF support and handles image loading/caching.

Getting Started

Adding Dependencies

//Glide  
implementation 'com.github.bumptech.glide:glide:4.10.0'  

//Retrofit  
implementation 'com.squareup.retrofit2:adapter-rxjava2:2.6.0'    
implementation 'com.squareup.retrofit2:retrofit:2.7.0'    

//Gson  
implementation 'com.squareup.retrofit2:converter-gson:2.7.0'  
implementation 'com.google.code.gson:gson:2.8.5'  

//OkHttp  
implementation "com.squareup.okhttp3:okhttp:4.3.1"  

//RxJava and RxAndroid
implementation 'io.reactivex.rxjava2:rxjava:2.2.12'    
implementation 'io.reactivex.rxjava2:rxandroid:2.1.1'
  1. Glide to load the images from a URL
  2. OkHttp
  3. GSON to parse data received from the website

Setting Up the App

Create a folder named util and Kotlin file Constants.kt It will keep your API Key and Base URL for the App

Enter your generated API Key at the place shown in the picture

Run...

Update_1 (1 June 2020)

Paginating added - user can now browse all the movies from the source

Update_2 (2 June 2020)

New Categories Added - Now user can browse

  1. Popular Movies
  2. Upcoming Movies
  3. Movies in theaters
  4. Top Rated Movies

Added Home Button to browsing pages

About

Android App to browse Latest, Upcoming, Popular Movies.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages