Well,
I think that I have the answer. I'm going to try the following code.
Sure seems a bit convoluted.
try {
ContentResolver cr = getContentResolver();
ParcelFileDescriptor pfd = cr.openFileDescriptor(data.getData(),
"r");
byte[] imageBuffer = new byte[(int)pfd.getStatSize()];
BufferedInputStream bis = new
BufferedInputStream(cr.openInputStream(data.getData()));
bis.read(imageBuffer, 0, imageBuffer.length);
myApp.image.copyPixelsFromBuffer(ByteBuffer.wrap(imageBuffer));
} catch (Exception e) {
Log.e("MyApp", "ImageManager : Processing onActivityResult...");
Log.e("MyApp", e.getMessage());
}
I'm still waiting for advice from an expert!
Thanks
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en