How to Load an Image from a Url with Picasso – Android Studio Tutorial



In this video we will use Square’s Picasso library to load an image from a URL into our app using the with, load and into methods.

Source code, dependency, instructions etc:

____________________
❗ Subscribe to the channel:

⏯ Watch more tutorials:

㊙ Help translating the videos:

💚 Support the content:

💬 Join the Discord chat:

🎧 Audiobooks and podcasts for programmers:

👶 How to get started with Android development:

📣 Follow Coding in Flow on social media:

Facebook:

Instagram:

Twitter:

Blog:

Nguồn: https://midlandlangarseva.com/

Xem thêm bài viết khác: https://midlandlangarseva.com/cong-nghe/

Article Categories:
Công Nghệ

Comments

  • In the newer versions of Picasso, you have to use Picasso.get() instead of Picasso.with(context)

    Coding in Flow June 22, 2020 9:29 am Reply
  • Thank you.

    wilson chan June 22, 2020 9:29 am Reply
  • how to blur with picasso image from url?

    Xcellent G June 22, 2020 9:29 am Reply
  • Thank you. Do you have a video that teaches how to download a file from a site and save it in Android?

    A R June 22, 2020 9:29 am Reply
  • Dude…you are an absolute GOD! THANK YOU!!!

    Jordan Jancic June 22, 2020 9:29 am Reply
  • Can we pick video and other files instead of image by using Picasso Library?

    Learn BOX June 22, 2020 9:29 am Reply
  • make tutorial with glide as well.

    Muaz Ishfaq June 22, 2020 9:29 am Reply
  • Hello sir,
    i like the way you make it simple any stuff. Thanks a lot.

    Shubhankar Ingale June 22, 2020 9:29 am Reply
  • I really like your simplicity in explaining everything, you will be a great teacher.
    Thank you.

    Ahmed Abdelmonem June 22, 2020 9:29 am Reply
  • Thank You So0o0o0o0o0o Much

    seyed hossein Abtahi June 22, 2020 9:29 am Reply
  • just 1 thing => You are awesome <3

    Mehmed Cavas June 22, 2020 9:29 am Reply
  • try {

    // Picasso.get().load(image).into(profileIv);

    Picasso.get().load(image).into(profileIv);

    Toast.makeText(getActivity(),"Line 185 ",Toast.LENGTH_SHORT).show();

    }
    catch (Exception e){

    Picasso.get().load(R.drawable.ic_add_a_pic).into(profileIv);
    Toast.makeText(getActivity(),"Line 191 ",Toast.LENGTH_SHORT).show();

    }

    Try is Not Working … Directly Going To Catch …. Help Please !!

    Mujib Ahamad June 22, 2020 9:29 am Reply
  • your sound is very charismatic

    Putu Widiarsa June 22, 2020 9:29 am Reply
  • Thanks ❤️

    Moaz El-sawaf June 22, 2020 9:29 am Reply
  • how to show a progress bar while loading image from URL using Picasso .
    thanks in advance

    sadeeq rahman June 22, 2020 9:29 am Reply
  • I'm watching your every single video, even I don't need to because I know pretty much about Android development but I love watching your videos, your way of explaination and small details are always rocks🔥♥️

    Harsh Barnwal June 22, 2020 9:29 am Reply
  • How can I get these images …

    Vivin S June 22, 2020 9:29 am Reply
  • THANK YOU MATE 😀 LITTLE CORRECTION BECASUE "WITH" HAS CHANGED TO "GET" (WITHOUT this).
    if (url.isEmpty()) {

    //imageView.setVisibility(View.VISIBLE);

    Picasso.get().load(url2).into(imageView);

    } else {

    //imageView.setVisibility(View.VISIBLE);

    Picasso.get().load(url).into(imageView);

    }
    BEST REGARDS 😉

    RaceDriverF1 June 22, 2020 9:29 am Reply
  • please make a video how to download webpage and extract images from it and show in the app.

    pkbaby June 22, 2020 9:29 am Reply
  • It worked on my laptop but when going on my desktop, I have "cannot resolve symbol picasso" (I added the implementation)

    el famoso June 22, 2020 9:29 am Reply
  • thanks you !

    Hiệp Trần June 22, 2020 9:29 am Reply
  • you're awesome cos u solve my issue , really thank u very much

    Games For U June 22, 2020 9:29 am Reply
  • how can l get image url?

    Prakash Gupta June 22, 2020 9:29 am Reply

Leave a Reply

Your email address will not be published. Required fields are marked *