Questions tagged [picasso]

Picasso is an open source powerful and dynamic image caching and downloading library by Square.

Working with bitmaps can be hard on Android apps. There are too many things that can go wrong. The golden rule is decode only as much as you need, never more. Picasso is the realization of this rule by Square.

With automatic canceling, transformations and a fluent API, Picasso provides a super fast, elegant solution for downloading, caching and displaying images to your Android app.

Official Site: http://square.github.io/picasso/

2541 questions
29
votes
5 answers

Saving image from url using Picasso?

I'm trying save an image using API Picasso. To do it I'm trying use Target to save but I can't do this work. How could I do this ? Trying //save image public static void imageDownload(Context ctx){ Picasso.with(ctx) …
FernandoPaiva
  • 4,410
  • 13
  • 59
  • 118
28
votes
2 answers

How do I set background image with picasso in code

I know picasso loads image into imageview etc but how do I set my layout background image using picasso? My code: public class MainActivity extends ActionBarActivity { @Override protected void onCreate(Bundle savedInstanceState) { …
Toye
  • 483
  • 1
  • 4
  • 7
26
votes
4 answers

how to add picasso library in android studio

I am getting this error, please help me. Error:A problem occurred configuring project ':app'. > Cannot evaluate module picasso-master : Configuration with name 'default' not found. Done so far : 1. download the picaso 2.unzip the zip…
Kartiki
  • 265
  • 1
  • 3
  • 7
26
votes
4 answers

Using Picasso with custom disk cache

In Volley library, the NetworkImageView class requires an ImageLoader that handles all the image requests by searching for them inside an ImageCache implementation, the user is free to choose how the cache should work, the location and the name of…
Vektor88
  • 4,841
  • 11
  • 59
  • 111
25
votes
5 answers

Load images from disk cache with Picasso if offline

I have some images that I download from different web sites when the app starts, by doing this: Picasso.with(context).load(image_url).fetch(); Now, suppose the user closes the app and turns offline. When the app starts again, Picasso display the…
Daniele Vitali
  • 3,848
  • 8
  • 48
  • 71
23
votes
14 answers

RecyclerView laggy scrolling

I am loading 400x200 images in RecyclerView, but scrolling is laggy on 2k devices. I am using Picasso for loading images from resource. As you can see in the demo images are blurry on 2k screen, but if I load higher resolution images the situation…
phlosopher_mk
  • 340
  • 1
  • 3
  • 11
23
votes
2 answers

Load large images with Picasso and custom Transform object

I'm getting an Out Of Memory exception using Picasso when loading "large" images (> 1.5MB) from Android Gallery (using startActivityForResult). I'm using a custom Target object because I need to preprocess the Bitmap when it is ready and also I'm…
edrian
  • 4,501
  • 5
  • 31
  • 35
23
votes
2 answers

How to implement my own disk cache with picasso library - Android?

I'm using picasso library to load images for my app. But I don't how to implement my own disk (sdcard) caching with picasso library.
Dax
  • 6,908
  • 5
  • 23
  • 30
22
votes
5 answers

Picasso java.lang.IllegalStateException: Method call should not happen from the main thread

I am attempting to use Picasso to get three Bitmap images from a URL public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.tab2); Drawable d1 = new…
Brian
  • 7,098
  • 15
  • 56
  • 73
21
votes
3 answers

Android Picasso auto rotates image

I am using Picasso to load images from the web in my application. I have noticed that some images are shown rotated by 90degrees although when I open the image in my browser I see it correctly positioned. I assume that these images have EXIF data.…
Panos
  • 7,227
  • 13
  • 60
  • 95
21
votes
3 answers

how to use progressbar when loading image in picasso?

I want onStart() method to load image from server using picasso and I want to show a progress bar until the photos are fully downloaded Here is my code: @Override protected void onStart() { // TODO Auto-generated method stub …
androidAhmed
  • 211
  • 1
  • 2
  • 5
21
votes
6 answers

OkHTTP and Picasso don't run together

I use Picasso library in my project to load images ande cache them. It works good without any problem. However, when I try to use OkHttp library to perform data communication with my server (JSON communication), Picasso throws exceptions. I use the…
anL
  • 1,073
  • 1
  • 11
  • 31
21
votes
3 answers

Transparent part of image in ImageView become black

I have problem when displaying image with transparency in Android KitKat (Nexus 7), it is OK in nexus 4 (KitKat) and other previous Android OS, here the image: and ImageView…
hakim
  • 3,819
  • 3
  • 21
  • 25
20
votes
2 answers

Preload images into memory/disk with Android Picasso

Can I download images with Picasso before displaying them? I want to cache images first. Sample scenario: User clicks on the button, sees the progressbar, and when the images have finished loading user see the images on the screen. I tried to load…
user3032346
  • 301
  • 1
  • 3
  • 3
19
votes
9 answers

I/System.out: (HTTPLog)-Static: isSBSettingEnabled false?

I am getting this when using a recycle view along with Picasso library to fetch images from sound cloud. The problem is that the app freezes for few seconds sometimes. Then, I get a message of skipping frames and doing too much work on the main…
jelmood jasser
  • 878
  • 1
  • 13
  • 30