If you’re working with an Android application, this source code seems to work to load an image from a file:
Bitmap bitmap = BitmapFactory.decodeFile(pathToPicture);
The Bitmap and BitmapFactory classes are located in the android.graphics package:
import android.graphics.Bitmap; import android.graphics.BitmapFactory;
Assuming that your pathToPicture is correct, you can then add this bitmap image to an ImageView like this: