joeymejias / Volley-HW

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

title type duration creator
Volley
Homework
2:00
name city
Charlie
NYC

Volley Homework

Note: This homework is OPTIONAL. It can be a pair programming activity or done independently.

Exercise

After Retrofit, the next most popular neworking library for Android is Google's Volley. In this optional homework, you will use the Volley documentation as a guide and implement Volley to make network calls to Walmart's API.

Requirements

  • Replicate your Networking in Android Lab using Volley to make all your network calls
  • Make the same calls to the Walmart API that you made for the lab, and display the products to your user
  • Use Volley's RequestQueue to perform API calls asynchronously on a worker thread (instead of the AsyncTask approach used in the lab)

Bonus:

  • If a user clicks on of the product buttons while a network request is still pending, cancel the existing request and launch the new one

Starter code

You have three options:

  1. Build this app from scratch
  2. Start with your code from the Networking in Android Lab
  3. Start with the solution code from the Networking in Android Lab

Deliverable

This is an optional homework. If you choose to complete it, submit a pull request with your completed app and you will receive feedback.


Licensing

  1. All content is licensed under a CC-BY-NC-SA 4.0 license.
  2. All software code is licensed under GNU GPLv3. For commercial use or alternative licensing, please contact legal@ga.co.

About

License:Other