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://u-os.org/

Xem Thêm Bài Viết Khác:https://u-os.org/cong-nghe

Author

28 Comments

  1. Coding in Flow Reply

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

  2. Ahmed Abdelmonem Reply

    I really like your simplicity in explaining everything, you will be a great teacher.
    Thank you.

  3. Mujib Ahamad 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 !!

  4. sadeeq rahman Reply

    how to show a progress bar while loading image from URL using Picasso .
    thanks in advance

  5. Harsh Barnwal 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🔥♥️

  6. RaceDriverF1 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 😉

  7. please make a video how to download webpage and extract images from it and show in the app.

  8. It worked on my laptop but when going on my desktop, I have "cannot resolve symbol picasso" (I added the implementation)

  9. Games For U Reply

    you're awesome cos u solve my issue , really thank u very much

  10. sir ,make that we upload images in picasso library and get that images in our app,plzzz

  11. Unable to start activity Component info: java.lang.IllegalArgumentException: Target must not be null.

  12. Jaysri Venkataramanan Reply

    Could you please make a video on loading the images without using third party libraries. If you have already made one could you please post the link here? Thanks in advance

  13. brandon Walker Reply

    fails on: error: cannot find symbol method findViewById(int) how do I kill findViewById I hate it it always fails to load

  14. key element 2:14
    imageView = findView…..
    url = " www."
    Picasso.with(this).load(url).into(imageView)

  15. Design Studio Reply

    How can one load image Uri with piccaso and handle bitmapa

  16. Sir, Make a video on run time permission and choosing a file.

Write A Comment