Chris Stratton wrote:
[...]
> I wonder if its expectations are close enough to those of the sources-
> provided non-gmail "Email" application that you could debug it against
> that and then switch back to gmail?

Yes, of course I can...

For reference, what GMail (and Email) want is a cursor conforming to 
OpenableColumns, containing the name and size of the file (if known). 
Once the app has read those it'll try to open the file via 
ContentResolver#openInputStream().

So that bit's all working fine. However, I can't find a way of passing a 
stream through a ParcelFileDescriptor. I really don't want to have to 
write my file out to disk because figuring out when to clear up the 
temporary file becomes nasty. What I'd really like is a pipe, so that I 
can create the data as the email app asks for it --- but it doesn't 
appear to be possible to create a ParcelFileDescriptor from a pipe, or a 
unix socket, etc. Is there any way to do this?

I may have to resort to creating a unix socket in my application sandbox 
and lying to GMail about it being a file.

-- 
┌─── dg@cowlark.com ───── http://www.cowlark.com ─────
│
│ "They laughed at Newton. They laughed at Einstein. Of course, they
│ also laughed at Bozo the Clown." --- Carl Sagan

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to