What code to use to insert the result into an ImageView?

0
  

I want to create a timeline where the images of a facebook album appear, I am not getting the images to appear in my activity. I would like to get a code to use where Insert your code here appears. Does anyone know a solution?

final GraphRequest request = GraphRequest.newGraphPathRequest(
            accessToken,
            "/id",
            new GraphRequest.Callback() {
                @Override
                public void onCompleted(GraphResponse response) {                        

                    // Insert your code here
                }
            });

    Bundle parameters = new Bundle();
    parameters.putString("fields", "albums{photos{from}}");
    request.setParameters(parameters);
    request.executeAsync();
    
asked by anonymous 13.04.2017 / 03:59

1 answer

1

Use the glide lib is recommended by google:

It has a simple syntax

Glide.with(context).load("url").into(imageView);

To add lib to your dependencies add to gradle:

compile 'com.github.bumptech.glide:glide:3.7.0'
    
14.04.2017 / 00:27