Picasso is needed to download pictures from an Internet. But in the examples I see only the site imgur. Where is it used? And about how?) Share pieces of code please :)
Closed due to the fact that the essence of the issue is not clear by the participants user194374, pavel , Vadim Ovchinnikov , aleksandr barakin , Yuri Jan 8 '17 at 10:30 .
Try to write more detailed questions. To get an answer, explain what exactly you see the problem, how to reproduce it, what you want to get as a result, etc. Give an example that clearly demonstrates the problem. If the question can be reformulated according to the rules set out in the certificate , edit it .
- fourAnd with what, besides the basic example from the docks with any other url, can we help you? .. - YuriySPb ♦
|
1 answer
Picasso has several features for which they love it:
- she can show pictures anywhere: online, in assets, somewhere in storage, in resources
- it performs image conversion operations in worker thread in turn. that is, it can be applied when displaying pictures in a long list in ListView / RecyclerView, and the user, quickly scrolling through the list, will not take the processor to convert the pictures a minute ahead
- she copes with large pictures without raising OutOfMemoryException
Well and further on trivia, including placeholders and caching.
How to use it is written on its page . The fact is that uniform 5 lines for all occasions.
- Thank you, but I would like to know more. For example, on the server of the online store are pictures of goods. How to download them? By url? But what about the server then everything is done? The picture should be on a separate page? - Flippy
- Yes, this is not a Picasso question. You should first read about the HTTP protocol - what it is for and what it can do. Then it will be easier to understand how to interact with the server, and how it should and can be arranged. While the hint: the server is not a computer in a special room, the server is a program. Read about HTTP - ask a new question again. - tse
|