Sunday, March 9, 2014

[android-developers] Re: ContentResolver obtaining java.io.File instead java.io.FileDescriptor

Hi,

Yes, this is exactly the problem I am facing. Maybe I
should request multiple columns when starting the
intent. One column with some timedate, and another column
with the data blob.

Still not sure how to fabrikate the intent and how
to obtain the result, so that I get both the data and
the timedate.

Bye

Doug schrieb:
> That's because a FileDescriptor doesn't necessarily reference an actual
> file on a filesystem. It's an abstraction for a stream of bytes that
> could be coming from a file or some other source (such as stdin,
> stdout). You're not supposed to know or care what it is, you just read
> or write it.
>
> Doug
>
> On Saturday, March 8, 2014 4:51:02 AM UTC-8, jb wrote:
>
> Dear All,
>
> I am using an intent to invoke a file chooser.
> Some of the file chooser applications return an
> Uri of scheme "file" others return an Uri of
> "scheme" content.
>
> I need to obtain the last modified date of the
> chosen object. How do I do that? I didn't find
> an appropriate API. There is some API that returns
> a FileDescriptor. But I don't get the last modified
> date from a FileDescriptor.
>
> Any help appreciate.
>
> Best Regards
>
> --
> 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+unsubscribe@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
> ---
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to android-developers+unsubscribe@googlegroups.com
> <mailto:android-developers+unsubscribe@googlegroups.com>.
> For more options, visit https://groups.google.com/d/optout.


--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment