In my project I have dir 'data' with images. How I can draw images from this dir? I tried to use method decodeFile of class BitmapFactory:
Using java Syntax Highlighting
- ...
- String path_to_file = "data/image.jpeg";
- BitmapFactory.decodeFile(path_to_file);
- ...
Parsed in 0.030 seconds, using GeSHi 1.0.8.4
but without any success. I think a have mistake in relative file path of image. Can anybody say how to draw this image?
Project tree:
- Code: Select all
./ProjectDir
./res
...
./src
...
./data
./image.jpeg
I checked documentation but did not find solution =(



