0
 @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?

Nicky
  • 885
  • 9
  • 21

1 Answers1

3

Add this line in your manifest:

<uses-permission android:name="android.permission.INTERNET" />
Eric B.
  • 4,622
  • 2
  • 18
  • 33
  • Hey image is not cache in memory what should i do for save in external storage for image. – Nicky Dec 22 '15 at 05:54
  • 1
    @Nicky see [this](http://stackoverflow.com/questions/23978828/how-do-i-use-disk-caching-in-picasso). – Eric B. Dec 22 '15 at 05:59