B4A Library Picasso image downloading and caching library

a2stepper

Member
Licensed User
Longtime User
thanks for the info for the tutorial for the new .jar. i did download the version 2.3.3, renamed it and moved to the library folder.
not nothing keep getting picasso has stopped working. i have tried in the two sample files you had and also the file
i've been working on with this error on all
is there something else i need to do??
thanks again
paul
 

Shahid Saeed

Active Member
Licensed User
Longtime User
If you want to use the latest jar file you cannot use it as Library Wrapper you will have to include JAR file directly into main activity. Just go through this tutorial and it will work: http://www.b4x.com/android/forum/th...onaljar-and-javaobject-picasso.40904/#content
 

migrec

Member
Licensed User
Longtime User
Very good lib, extremely time-saving!
sometimes Picasso1.LoadUrl("").Fit.IntoImageView(ImageView1) won't resize the image though, any reason why? maybe I'm using it wrong..
 

Shahid Saeed

Active Member
Licensed User
Longtime User
Very good lib, extremely time-saving!
sometimes Picasso1.LoadUrl("").Fit.IntoImageView(ImageView1) won't resize the image though, any reason why? maybe I'm using it wrong..
Fit.IntoImageView will fit the picture as per the dimensions of the imageView; therefore the picture may look stretched. If you want to load picture proportionally try the following re-size method:-

B4X:
Picasso1.LoadUrl("").Resize(ImageWidth,ImageHeight).CenterCrop.IntoImageView(ImageView1)
 

Vincenzo Fabiano

Member
Licensed User
Longtime User
No update of the wrapper for this magnificent library ?? So the method with the external jar .. but with the wrapper would be so much easier and complete! This library I consider it one of those basics! Please @warwound update it! If necessary, enter it below donation, I will be happy to repay your work!
 

scsjc

Well-Known Member
Licensed User
Longtime User
hello,
can force clear cache, to reload a new image ????
i test SKIPCACHE... and some times is clear and some times not ????
 
Last edited:

a2stepper

Member
Licensed User
Longtime User
do you have the latest working version for basic 4 android. i have parts but none are working very good.
thanks.
paul
 

Douglas Farias

Expert
Licensed User
Longtime User
i have for with picasse to load the images at my imageview ok this works 2x times
my for have 100 images i load 100 images one time, but later a time waiting 15 seconds on app when i try load my for again dont load the images
the picasso dont work more i dont see any images why? i have try use skipcache and i try to load a color on my imageview before load the new images but dont load =( picass works only 1 time here
 

Shahid Saeed

Active Member
Licensed User
Longtime User

Try using the latest library of picasso; If you want to use the latest jar file you cannot use it as Library Wrapper you will have to include JAR file directly into main activity. Just go through this tutorial and it will work: http://www.b4x.com/android/fo...onaljar-and-javaobject-picasso.40904/#content
 

Jerez

Active Member
Licensed User
Longtime User
Hi,

I can't stream this image URL with Picasso... why? is too big?

I can stream other pics but not this url... and this url return a Jpeg image data.

http://50.197.211.181:9831/cgi-bin/CGIProxy.fcgi?cmd=snapPicture2&usr=user&pwd=foscam


B4X:
DownloadImage(Url, imgCamera)

Sub DownloadImage(url AsString, imgView AsImageView)

Dim imgDownload As Picasso
imgDownload.Initialize
imgDownload.LoadUrl(url).Resize(imgView.Width, imgView.Height).CenterCrop.IntoImageView(imgView)

End Sub

With ImageDownloader Module i haven't problem.

please help
 

Douglas Farias

Expert
Licensed User
Longtime User

what happens if u add .jpg on the end of url?
 

Jerez

Active Member
Licensed User
Longtime User
what happens if u add .jpg on the end of url?

No man... does not work.
Also... in another project i'm loading about 5 jpegs 640x480 @ 200~300 bk each... and 4 of 5 images are loaded (random). always one fail.
Any other library that can download images, resize and crop?

** This library is an abandonware **
 

Jerez

Active Member
Licensed User
Longtime User
Erel, any chance you can implement a "dislike" button?

@moster67: You can say with your own words "dislike"... no need a button for it.

It's a great library! but i would like an answer from the developer. An "I can't" or "I haven't time" is enough for me.
 

Blue.Sky

Active Member
Licensed User
Longtime User
Hi
I have a many image link that should be download
I used imageDownloader but now i want to use Picasso
Example :
For i = 0 to ls.size - 1
dim p as picasso
p.initilize
p.loadurl(ls.get(i))
next

but not work
i use defaultTarget but it get error
Do you have a solution?
 

Bel

Member
Licensed User
Hi
I cannot use this powerful libary in my project because it is not match with OKHttputill
Do you decide to update this library?
 

MarcoRome

Expert
Licensed User
Longtime User
Hi
I cannot use this powerful libary in my project because it is not match with OKHttputill
Do you decide to update this library?
Right if you add add okHttp when run you have this error:


 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…