View Image with help of URL in Android(Picasso Api)

Hey, friends in this blog I will tell you how you can fetch an image from the server. For this, you have to generate its URL. when you host image in a server a URL is generated
I have already told about volley how we can fetch image with volley Network Image View so that takes a long time to fetch image and caching is also complex in volley so
in the volley, if you are making a request which takes a long time like file Downloading then its not a good way to Use volley in that case.so we use Picasso or Glide API for the Image Fetching.

the process is very Simple it Automatically Supports Caching so it is very easy to fetch image with help of Picasso API. We Don't need to write any extra code for that.
1. Add below Dependency in App Level Gradle File.
  implementation 'com.squareup.picasso:picasso:2.71828'

2.Method to fetch an image from Picasso.
Above method is used for a simple image Fetch with the help of Piccaso you can implement many methods in this - ClickHere





Post a Comment

0 Comments