@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
ImageView imgView = (ImageView) findViewById(R.id.img_view);
Context context = this;
Picasso.with(this)
.load("http://i.imgur.com/DvpvklR.png")
.placeholder(R.drawable.appleadn)
.noFade()
.into(imgView);
}
I am new in android and i use picasso for download images but above with that code give me no error placeholder is also shown but image is downloaded or started yet where i am wrong? Or is there flag or something setting for picasso or OkHttp is must for use picasso?