In the last couple of tips, David described how to use Retrofit, an open-source library for making web service calls. David showed how to make calls both synchronously and asynchronously. Now he describes how to send a Parameter with a get request so you can filter the data that’s returned from a web service.
- [Instructor] In the last couple of tips…I've described how to use retrofit,…an open source library for making…web service calls.…I showed how to make calls…both synchronously and asynchronously.…Now, I'll describe how to send…a parameter with the get request…so that you can filter the data…that's returned from a web service.…Let's go back to the web service…that I'm using.…It's at this URL.…This particular web service is defined…so that you can pass in a parameter…named, category, and you'll filter…the data based on the category field.…
I'll start with question mark…for a query string, and then I'll select…category equals desserts, and I get back…just the desserts, apple pie, cheesecake and so on.…I can change that to, entrees,…and then I'll get back all the entrees…or I can change it to, starters.…Now, you have to pass in exactly…the right value.…For example, if I say, category equals something,…I won't get back anything.…So, there isn't a lot of error handling…with this particular web service,…but you can see that it does work as expected.…
Skill Level Intermediate
Q: Why can't I earn a Certificate of Completion for this course?
A: We publish a new tutorial or tutorials for this course on a regular basis. We are unable to offer a Certificate of Completion because it is an ever-evolving course that is not designed to be completed. Check back often for new movies.
Building Android Apps with Cloud Serviceswith Albert Lo2h 37m Intermediate
Android App Development: Data Persistence Librarieswith Annyce Davis4h 52m Intermediate
New This Week:
1. Android Development Tips Weekly
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.