Skip to content

ga-adi-macaron/volley-hw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

title type duration creator
Volley
Homework
1:30
name city
Charlie
NYC

Volley Homework

Note: This homework 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 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
  • Replace your old code that creates JSONObjects and JSONArrays manually by using GSON instead

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 provied solution code from the Networking in Android Lab

Deliverable

Submit a pull request with your completed app. If you work with a partner, only one person needs to submit, but put both names in the pull request title.

Here is a gif that demonstrates the required functionality:

Resources


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

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages