Loading Image from external Storage

suggest change

getExternalFilesDir takes a type argument. Pass null for the root of the app-specific external files directory. It can return null when that storage is unavailable. context and imageView are not declared on this page.

String filename = "image.png";
String imagePath = getExternalFilesDir(null) + "/" + filename;

Picasso.with(context)
    .load(new File(imagePath))
    .into(imageView);

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents