0

I have an url array and I have to load all images and put it in image array.

I'm trying this

ImageView tempImageView = (ImageView)findViewById(R.id.temp_image_view);
        for (int j = 0; j < urls.length-1; j++){
            Picasso.with(getApplicationContext()).load(urls[j]).into(tempImageView);
            image[j] = tempImageView.getDrawable();

        }

but it's doesn't work. how can I do it?

2

1 Answer 1

0

Picasso has an oncompletion listener.

Check this answer

How to listen for Picasso (Android) load complete events?

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.