I use below code to get the bitmap of all sd card photo.
String[] projection = {MediaStore.Images.Media._ID,MediaStore.Images.Media.DATA}; Cursor cursor =
Images.ImageColumns.DATA is the path
Images.ImageColumns.DATA
How to use it:
int image_column_index = cursor.getColumnIndex(MediaStore.Images.Media._ID); int image_path_index = cursor.getColumnIndex(MediaStore.Images.Media.DATA); //added ... path[i] = cursor.getString(image_path_index);