How can I load an image using picasso library
?
I already tried it but it display force close
on my screen. I just added this:
ImageView a = (ImageView)findViewById(R.id.ivImage);
Picasso.with(Home.this).load(TAG_IMAGE).into(a);
On my onPostExecute()
, I am loading my image from server.
For that purpose, you have to write custom adapter.
Refer this link to know how to use Picasso in your custom adapter.
To learn about customAdapter() refer this link