picasso

Picasso library stopped working today with facebook graph picture links

戏子无情 提交于 2020-01-22 09:32:46
问题 In my app i use Picasso library to load images from urls. It is a nicely working easily importable and usable library, and just do the thing i need. However, today it stopped working, and not while developping it is stopped working on a compiled apk. So after i searched and searched for the reason i just found this buggy thing: I use facebook graph urls to load profile pictures. Here is one like: profile pictre, the link is actually "http://graph.facebook.com/1464090949/picture?type=large"

Android Image invalidate in fresco

三世轮回 提交于 2020-01-14 04:49:28
问题 I am migrating android image caching library from picasso to fresco. I want to know if there is any way to invalidate image already catched as I am adding feature to replace existing image there is way to do so in picasso like Picasso.with(context).invalidate(URI); This line remove the cached image and use new one using the url provided which is same like, http://example.com/image_path In fresco I have tried using Fresco.getImagePipeline().evictFromMemoryCache(uri); This is removing image

Picasso showing blue red and green arrows on top corner

こ雲淡風輕ζ 提交于 2020-01-13 20:19:53
问题 I am using picasso to fire up an image in imageView. Here is the code ImageUtils.setImageFromUrl(app.selectedRing.getMainPicture(), imageView, MainActivity.this); public static void setImageFromUrl(final String url, final ImageView imgView, final Context mContext) { Picasso.with(mContext) .load(url) .networkPolicy(NetworkPolicy.OFFLINE) .fit().centerInside().placeholder(null) .into(imgView, new Callback() { @Override public void onSuccess() { } @Override public void onError() { Picasso.with

How to make Picasso/Glide work with Html.ImageGetter for caching images?

泄露秘密 提交于 2020-01-13 14:00:28
问题 Thanks for all the effort @Budius has made. Most part of image work of my app could be handled by Picasso/Glide, however, some images are displayed in a TextView by Html.fromHtml . And the images in TextView are also used frequently. However, I don't know how to implement getDrawable() method with Picasso/Glide for the ImageGetter passed to Html.fromHtml . Is it possible to share the same cache of Picasso/Glide for these pictures in TextView and other bitmaps? Or should I use an custom

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

ぐ巨炮叔叔 提交于 2020-01-08 17:15:30
问题 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. 回答1: Picasso uses the HTTP client for disk caching and if one is already configured it will use that instead of installing its own. For the built-in UrlConnection the docs for installing a cache are here: https://developer.android.com/reference/android/net/http/HttpResponseCache.html If you are using OkHttp then you just call setCache: http://square.github.io

Using Picasso inside Volley is giving me a bad frame-rate and crashing my app

怎甘沉沦 提交于 2020-01-07 10:50:57
问题 To make a long story short, I'm using Picasso inside Volley's onResponse() method to populate a listview with images. The code is working, but I'm getting a bad frame-rate, and the app is crashing with no memory if I scroll through the list view too quickly. Where is the bad performance coming from? I thought the asynchronous stuff would take care of everything. Picasso and Volley work just find until I stick them inside of each-other. I think the problem might be that I'm sticking an

Using Picasso inside Volley is giving me a bad frame-rate and crashing my app

余生长醉 提交于 2020-01-07 10:50:31
问题 To make a long story short, I'm using Picasso inside Volley's onResponse() method to populate a listview with images. The code is working, but I'm getting a bad frame-rate, and the app is crashing with no memory if I scroll through the list view too quickly. Where is the bad performance coming from? I thought the asynchronous stuff would take care of everything. Picasso and Volley work just find until I stick them inside of each-other. I think the problem might be that I'm sticking an

Using Picasso inside Volley is giving me a bad frame-rate and crashing my app

℡╲_俬逩灬. 提交于 2020-01-07 10:49:51
问题 To make a long story short, I'm using Picasso inside Volley's onResponse() method to populate a listview with images. The code is working, but I'm getting a bad frame-rate, and the app is crashing with no memory if I scroll through the list view too quickly. Where is the bad performance coming from? I thought the asynchronous stuff would take care of everything. Picasso and Volley work just find until I stick them inside of each-other. I think the problem might be that I'm sticking an

Custom maps marker point with picasso not loaded

时间秒杀一切 提交于 2020-01-07 03:57:27
问题 I'm implementing android Mapview with Custom marker. I'm using picasso to load image into marker view. But the maps not shows me the marker that i needed. Here's my code i = getIntent(); if(i.getBooleanExtra("maps", true)) { mactionBar.setSubtitle(i.getStringExtra("nama")); mMyMarkersArray.add(new MyMarker(i.getStringExtra("nama"), i.getStringExtra("deskripsi"), i.getStringExtra("foto"), i.getStringExtra("marker"), Double.parseDouble(i.getStringExtra("lat")), Double.parseDouble(i

Profile Image Uploader and Load it with Picasso

自作多情 提交于 2020-01-07 02:56:48
问题 I have an android app which has profile image. The user can edit his/her profile image. I'm using Picasso to load images, but every time I load profile image, Picasso loads old image. When I upload profile image I don't change it's url, so profile image url for every user is constant. First question: should I change profile image url every time user change profile image? Second question: When user change his/her profile image I invalidate Picasso to load new image using this code: