How to pick an image from gallery (SD Card) for my app?

Updated answer, nearly 5 years later: The code in the original answer no longer works reliably, as images from various sources sometimes return with a different content URI, i.e. content:// rather than file://. A better solution is to simply use context.getContentResolver().openInputStream(intent.getData()), as that will return an InputStream that you can handle as you choose. For … Read more