Accepted answer was not working for me,
What had worked:
Intent intent = new Intent();
intent.setAction(Intent.ACTION_VIEW);
intent.setDataAndType(Uri.parse("file://" + "/sdcard/test.jpg"), "image/*");
startActivity(intent);
More Related Contents:
- Get resources images from variable
- How to make an ImageView with rounded corners?
- How to pick an image from gallery (SD Card) for my app?
- Saving and Reading Bitmaps/Images from Internal memory in Android
- How to get Bitmap from an Uri?
- How do I get the resource id of an image if I know its name? [duplicate]
- “Bitmap too large to be uploaded into a texture”
- How to create a circular ImageView in Android? [duplicate]
- About Android image and asset sizes
- Out of Memory error with Bitmap
- Reading an image file into bitmap from sdcard, why am I getting a NullPointerException?
- Bitmap recycle with largeHeap enabled
- Convert bitmap array to YUV (YCbCr NV21)
- How to change the Tabs Images in the TabHost
- Android make animated video from list of images
- Access pictures from Pictures app in my android app
- Get Meta Data of Image – Android
- How to clear an ImageView in Android?
- Save image to sdcard from drawable resource on Android
- Upload an Image from camera or gallery in WebView
- How to display a list of images in a ListView in Android?
- How to convert Image to PDF?
- Android Text over image
- android circular gallery?
- Set Imageview to show image in sdcard?
- Null pointer exception with “setDisplayHomeAsUpEnabled(boolean)” [duplicate]
- Detect end of ScrollView
- How to make an application ignore screen orientation change?
- Get the height of virtual keyboard in Android
- graphical layout not working in eclipse with adt 10.1 [closed]