Try with:
ImageView.setImageURI(Uri.fromFile(new File("/sdcard/cats.jpg")));
Or with:
ImageView.setImageURI(Uri.parse(new File("/sdcard/cats.jpg").toString()));
More Related Contents:
- Android layout with one side round [closed]
- how to store Image as blob in Sqlite & how to retrieve it?
- how do you pass images (bitmaps) between android activities using bundles?
- Deleting a gallery image after camera intent photo taken
- Strange OutOfMemory issue while loading an image to a Bitmap object
- Image, saved to sdcard, doesn’t appear in Android’s Gallery app
- Image in Canvas with touch events
- Is it possible to display inline images from html in an Android TextView?
- Android: how to make a clickable map image with each country producing a different action?
- Taking pictures with camera on Android programmatically
- How do I transfer an image from its URL to the SD card?
- Load an image from assets folder
- Drawable folders in res folder?
- Image size for all screen devices
- Can Android’s WebView automatically resize huge images?
- Android: how to convert whole ImageView to Bitmap?
- Phonegap Plugin:How to convert Base64 String to a PNG image in Android
- how to set the output image use com.android.camera.action.CROP
- Picasso loading of image spawned inside AsyncTask
- Loading all the images from gallery into the Application in android
- Rotate zoom drag image in android imageview
- Android: How do I attach a temporary, generated image to an email?
- get the last picture taken by user
- how to add background image to activity?
- How do I change the tint of an ImageButton on focus/press
- Resize Drawable in Android
- Crop an Image by passing the image file path in Android
- How To Display Border To Imageview?
- How can I display images from a specific folder on android gallery
- Open a selected file (image, pdf, …) programmatically from my Android Application?