Now i am going on with the selection of multiple image and video i went through
https://github.com/voidberg/DmxMediaPicker which is exactly what i need but here i get only type,id.
Below code which is used to get the id and type from here how can i get the path of particular image or video which is selected.
if (type == 0) {
idColumn = cur.getColumnIndex(MediaStore.Video.Media._ID);
bucketColumn = cur.getColumnIndex(MediaStore.Video.Media.BUCKET_DISPLAY_NAME);
dateColumn = cur.getColumnIndex(MediaStore.Video.Media.DATE_ADDED);
}
else {
idColumn = cur.getColumnIndex(MediaStore.Images.Media._ID);
bucketColumn = cur.getColumnIndex(MediaStore.Images.Media.BUCKET_DISPLAY_NAME);
dateColumn = cur.getColumnIndex(MediaStore.Images.Media.DATE_ADDED);
}
Tried a lot to customize by below but no use:
int id =cur.getInt(idColumn);
I tried to get the path of particular image or video from id but no change.
If anyone have idea about this please help to solve this issue.