March 2016
Intermediate to advanced
428 pages
9h 2m
English
Once you make your JSON Requests as demonstrated in the previous recipe, the next most likely call you'll be making is to get an image. This recipe will demonstrate how to request an image to update an ImageView.
Create a new project in Android Studio and call it ImageRequest. Use the default Phone & Tablet option and select Empty Activity when prompted for Activity Type.
This recipe will be using the setup described in the Getting started with Volley for Internet requests recipe. Follow steps 1-5 to add Volley to your new project.
With Volley added to your project, as described previously, follow these steps:
activity_main.xml and replace the existing TextView with the following XML: ...Read now
Unlock full access