Hi, I have a ContentProvider that serves an image to default built in image viewer. Ever since Android 2.1 the built in image viewer throws FileNotFound into the log. I also find this in the log: 04-12 09:28:54.066: ERROR/UriTexture(11541): Unable to load image from URI content://com.gnugu.secretboxplus.imageprovider/test.jpg
The file indeed does exist, I write it on sdcard. Here is a piece of code in openFile() method: File FILE_NAME = new File(DataAdapter.DATABASE_FILE_PATH, "test.jpg"); FILE_NAME.createNewFile(); FileOutputStream fileStream = new FileOutputStream(FILE_NAME); fileStream.write(pictureData); fileStream.flush(); fileStream.close(); // now open the file descriptor ParcelFileDescriptor result = ParcelFileDescriptor.open(ctx.getFileStreamPath(FILE_NAME.toString()), ParcelFileDescriptor.MODE_WORLD_READABLE); return result; This used to work just fine before 2.1 upgrade. This also works fine in the emulator. What am I doing wrong? Thank you! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe, reply using "remove me" as the subject.