GithubHelp home page GithubHelp logo

naughtybits / android-booksearch-exercise Goto Github PK

View Code? Open in Web Editor NEW

This project forked from codepath/android-booksearch-exercise

0.0 2.0 0.0 746 KB

Android app for searching books using the OpenLibrary api.

Java 100.00%

android-booksearch-exercise's Introduction

Book Search App

Android app that leverages the OpenLibrary API to search books and display cover images. This app is to be used as the base app for adding suggested extensions.

Imgur

Overview

The app does the following:

  1. Fetch the books from the OpenLibrary Search API in JSON format
  2. Deserialize the JSON data for each of the books into Book objects
  3. Build an array of Book objects and create an ArrayAdapter for those books
  4. Define getView to define how to inflate a layout for each book row and display each book's data.
  5. Attach the adapter for the books to a ListView to display the data on screen

To achieve this, there are four different components in this app:

  1. BookClient - Responsible for executing the API requests and retrieving the JSON
  2. Book - Model object responsible for encapsulating the attributes for each individual book
  3. BookAdapter - Responsible for mapping each Book to a particular view layout
  4. BookListActivity - Responsible for fetching and deserializing the data and configuring the adapter

Usage

This app is intended to be the base project on top of which new features can be added. To use it, clone the project and import it using the following steps:

Imgur

Suggested Extensions

  1. Use SearchView to search for books with a title
  2. Show ProgressBar before each network request
  3. Add a detail view to display more information about the selected book from the list
  4. Use a share intent to recommend a book to friends

Libraries

This app leverages two third-party libraries:

android-booksearch-exercise's People

Contributors

nidhi1608 avatar nesquena avatar

Watchers

James Cloos 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.