title | type | duration | creator | ||||
---|---|---|---|---|---|---|---|
Volley |
Homework |
2:00 |
|
Note: This homework is OPTIONAL. It can be a pair programming activity or done independently.
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.
- 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
You have three options:
- Build this app from scratch
- Start with your code from the Networking in Android Lab
- Start with the solution code from the Networking in Android Lab
This is an optional homework. If you choose to complete it, submit a pull request with your completed app and you will receive feedback.
- All content is licensed under a CC-BY-NC-SA 4.0 license.
- All software code is licensed under GNU GPLv3. For commercial use or alternative licensing, please contact legal@ga.co.