I am creating an Android app in which you copy an image from location x to location y. After the copying is complete I would like to see the picture in a ImageView.
I know the images location, but no matter what I try I can't create a bitmap object of it.
The line which are causing my problems is this:
BitmapFactory.decodeFile(dir+s);
dir = getCacheDir().getAbsolutePath()+"/images/";
s = file name (eg. 1275123123.jpg)
If I create a File object with the same path, and call f.isFile(), it returns true.
Opening the image in either android or windows are not a problem.