Any idea about how to get the real name of the attached file ?

Nivek

On 10 juil, 19:13, Alexey Krasnoriadtsev <ale...@agilefusion.com>
wrote:
> You are correct that you should use contentResolver.openInputStream
> (uri), to get the data from gmail attachments.
>
> Default Email app, is very dumb and is hardcoded to only open audio
> and image attachments.
> (disclaimer, that was the case 6 month ago, the last time i looked at
> it).
>
> On Jul 8, 10:16 am, Mirko Nasato <mirko.nas...@gmail.com> wrote:
>
>
>
> > Hi all,
>
> > I've written an app that can handle the VIEW action for a given
> > mimeType, say "application/foo". By adding the following to
> > AndroidManifest.xml the Browser automatically uses my app to open
> > downloads of that type:
>
> >   <intent-filter>
> >      <action android:name="android.intent.action.VIEW"/>
> >      <category android:name="android.intent.category.DEFAULT"/>
> >      <data android:mimeType="application/foo"/>
> >   </intent-filter>
>
> > The GMail app also tries to use my app to Preview attachments of that
> > type, but it's passing a URI with scheme "gmail-ls://" rather than a
> > "file://" URI. I guess I need to use a ContentProvider to get the
> > attachment data, I haven't looked into that yet.
>
> > But the real mystery is the Email app... there just doesn't seem any
> > way to make it open the attachments.
>
> > Any pointers? Opening attachments is a very common requirement of
> > course, and I would expect the Android platform to encourage
> > developers to write apps to handle more mime types. Instead I couldn't
> > find any answers:
>
> >  http://groups.google.com/group/android-developers/browse_thread/threa...
> >  http://groups.google.com/group/android-developers/browse_thread/threa...
>
> > Thanks
>
> > Mirko
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to