Try using the following lines of code in order to use this in your application:-
try
{
Bitmap bitmap = MediaStore.Images.Media.getBitmap(c.getContentResolver() , Uri.parse(paths)); }
catch (Exception e)
{
//handle exception
}
Also additionally, yes path must be in a format of like this:-
file:///mnt/sdcard/filename.jpg