* commit 'e16f439310b784bf46d033634e4a9e59a6a35c98': Doc Update: fixed unescaped angle brackets in code snippets.
This commit is contained in:
@@ -85,7 +85,7 @@ mImageView = (ImageView) findViewById(R.id.myImage);
|
|||||||
|
|
||||||
// Retrieves an image specified by the URL, displays it in the UI.
|
// Retrieves an image specified by the URL, displays it in the UI.
|
||||||
ImageRequest request = new ImageRequest(url,
|
ImageRequest request = new ImageRequest(url,
|
||||||
new Response.Listener<Bitmap>() {
|
new Response.Listener<Bitmap>() {
|
||||||
@Override
|
@Override
|
||||||
public void onResponse(Bitmap bitmap) {
|
public void onResponse(Bitmap bitmap) {
|
||||||
mImageView.setImageBitmap(bitmap);
|
mImageView.setImageBitmap(bitmap);
|
||||||
@@ -257,7 +257,7 @@ mTxtDisplay = (TextView) findViewById(R.id.txtDisplay);
|
|||||||
String url = "http://my-json-feed";
|
String url = "http://my-json-feed";
|
||||||
|
|
||||||
JsonObjectRequest jsObjRequest = new JsonObjectRequest
|
JsonObjectRequest jsObjRequest = new JsonObjectRequest
|
||||||
(Request.Method.GET, url, null, new Response.Listener<JSONObject>() {
|
(Request.Method.GET, url, null, new Response.Listener<JSONObject>() {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onResponse(JSONObject response) {
|
public void onResponse(JSONObject response) {
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ String url ="http://www.google.com";
|
|||||||
|
|
||||||
// Request a string response from the provided URL.
|
// Request a string response from the provided URL.
|
||||||
StringRequest stringRequest = new StringRequest(Request.Method.GET, url,
|
StringRequest stringRequest = new StringRequest(Request.Method.GET, url,
|
||||||
new Response.Listener<String>() {
|
new Response.Listener<String>() {
|
||||||
@Override
|
@Override
|
||||||
public void onResponse(String response) {
|
public void onResponse(String response) {
|
||||||
// Display the first 500 characters of the response string.
|
// Display the first 500 characters of the response string.
|
||||||
|
|||||||
Reference in New Issue
Block a user