[android-developers] Re: How to properly implement ParcelFileDescriptor.openFile() method.

2010-04-13 Thread gnugu
Figured it out. Thanks Mark for looking into it. The picture I serve comes from encrypted database. I have kept the picture in memory until it was requested and immediately deleted it from memory, so no other requests can get it. The problem was that this new cooliris viewer kept coming and comi

Re: [android-developers] Re: How to properly implement ParcelFileDescriptor.openFile() method.

2010-04-12 Thread Mark Murphy
gnugu wrote: > Indeed that line was wrong. Here is what the method looks like now. I > don't get the exception from within my code. Log shows the same as I > posted above and picture is not shown. The picture positively exists > and is on sdcard. Could it be that it has to be in Camera directory?

[android-developers] Re: How to properly implement ParcelFileDescriptor.openFile() method.

2010-04-12 Thread gnugu
Hi Mark, thanks for your response. Indeed that line was wrong. Here is what the method looks like now. I don't get the exception from within my code. Log shows the same as I posted above and picture is not shown. The picture positively exists and is on sdcard. Could it be that it has to be in Came

Re: [android-developers] Re: How to properly implement ParcelFileDescriptor.openFile() method.

2010-04-12 Thread Mark Murphy
gnugu wrote: > It fails in DatabaseUtils method: > > public static void readExceptionWithFileNotFoundExceptionFromParcel( > Parcel reply) throws FileNotFoundException { > int code = reply.readInt(); > if (code == 0) return; > String msg = reply.readString(); > if (code == 1

[android-developers] Re: How to properly implement ParcelFileDescriptor.openFile() method.

2010-04-12 Thread gnugu
It fails in DatabaseUtils method: public static void readExceptionWithFileNotFoundExceptionFromParcel( Parcel reply) throws FileNotFoundException { int code = reply.readInt(); if (code == 0) return; String msg = reply.readString(); if (code == 1) { *** this is where the exc

[android-developers] Re: How to properly implement ParcelFileDescriptor.openFile() method.

2010-04-12 Thread gnugu
Here is the full error: 04-12 10:36:04.626: ERROR/UriTexture(18929): Unable to load image from URI content://com.gnugu.secretboxplus.imageprovider/test.jpg 04-12 10:36:04.636: WARN/System.err(18929): java.io.FileNotFoundException 04-12 10:36:04.636: WARN/System.err(18929): at android.database.