For safety's sake, and to decrease confusion, I personally use the full path name and not assume anything with how the system would parse just a filename:
Using java Syntax Highlighting
fos=openFileOutput("data/data/proj.android.imagedownload/files/image1.gif",MODE_WORLD_READABLE);
Parsed in 0.030 seconds, using
GeSHi 1.0.8.4
It may not matter but it serves to improve readability. Someone correct me if I'm wrong and it actually does place it under root.
Also, please go over the logcat output to see if you've caught any exceptions. Any please correct your post to have the proper formatting.
Since you have your file written (double check in DDMS on its filesize to confirm you've downloaded it all), why go back to using a stream? You already have the direct file access that you've commented out:
Using java Syntax Highlighting
Bitmap bmp=BitmapFactory.decodeStream(openFileInput("image1.gif"));
//Bitmap bmp = BitmapFactory.decodeFile("data/data/proj.android.imagedownload/files");
Parsed in 0.033 seconds, using
GeSHi 1.0.8.4
Just note that you need to specify the full path of the file. So I'm assuming in your case, that would be
data/data/proj.android.imagedownload/files/image1.gif